G
gh
I have a HTML table that I have labels in several cells and I populate
them in the Page Load event, from a dataset. I have a hyperlink in one
cell that I want to display a website address in. I tried the markup
below but it doesn' t work. The cell is blank.
<tr>
<td>
</td>
<td>
<asp:HyperLink ID="lblWebsite" runat="server"
NavigateUrl='<%# DataBinder.Eval(Container,
"DataItem.WEBSITEADDRESS") %>'
ImageUrl=''
Text='<%# Eval("WEBSITEADDRESS") %>'></asp:HyperLink>
</td>
<td>
</td>
</tr>
If I use the following to populate the Hyperlink, it displays the
website address ok, but it is not a link. How do I do this?
lblWebsite.Text = ds.Tables[0].Rows[0]["WEBSITEADDRESS"].ToString();
Thanks
them in the Page Load event, from a dataset. I have a hyperlink in one
cell that I want to display a website address in. I tried the markup
below but it doesn' t work. The cell is blank.
<tr>
<td>
</td>
<td>
<asp:HyperLink ID="lblWebsite" runat="server"
NavigateUrl='<%# DataBinder.Eval(Container,
"DataItem.WEBSITEADDRESS") %>'
ImageUrl=''
Text='<%# Eval("WEBSITEADDRESS") %>'></asp:HyperLink>
</td>
<td>
</td>
</tr>
If I use the following to populate the Hyperlink, it displays the
website address ok, but it is not a link. How do I do this?
lblWebsite.Text = ds.Tables[0].Rows[0]["WEBSITEADDRESS"].ToString();
Thanks