Hyperlink text wont show up

Camillia used Ask the Experts™
I have a Repeater with a hyperlink itemtemplate. The image shows up but the text wont. When I look at "view source", the text comes out as "alt='test1'. But i need the text next to the image...

I even tried binding a test text by having Text = '<%# ....>' but this didnt work either. Code below:

<asp:Repeater runat="server" ID="rpAvaliableJobs">
      <h2><asp:Label runat="server" ID="lblJobTitle" Text='<%# DataBinder.Eval(Container.DataItem, "title") %>'></asp:Label></h2>
          <asp:HyperLink ID="HyperLink2" Text='test2'  Width="28" Height="30" ImageUrl="~/Images/btn_icon_arrow.gif" 
            NavigateUrl='<%# "../Job/JobOpening.aspx?jobId=" + DataBinder.Eval(Container.DataItem,"PostingID")%>' border="0" align="left" 

Open in new window

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
If you want to display text next to image then you have to put text after </asp:HyperLink> tag.
In ASP 1.0, you would need to have NavigateUrl='<%= "......."%>'

Try replacing the # symbol there with an = symbol.
let me try
Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

Placing the text after the </hyperlink> makes the text show up but not next to the image. I dont think that's correct to just place it after </hyperlink>

Tried "=" and added Text ="test" and no it didnt show up.
This works but the hyperlink one doesnt. Why, i dont know.

            <a href='<%# "../Job/JobOpening.aspx?jobId=" + DataBinder.Eval(Container.DataItem,"PostingID")%>' cla
            <img src="../Images/btn_icon_arrow.gif" alt="Full Description" width="28" height="30" border="0" align="left" />
                Full Description
now try one thing, add style attribute to img tag and add float:left;

It will work.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial