Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<asp:TemplateColumn>
<ItemTemplate>
<a href="[URL unfurl="true"]http://msn.com"[/URL] title="whatever">MSN</a>
</ItemTemplate>
</asp:TemplateColumn>
or:
<asp:TemplateColumn>
<ItemTemplate>
<asp:HyperLink Runat=server NavigateUrl="[URL unfurl="true"]http://msn.com"[/URL] Text="MSN" title="whatever" />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<ItemTemplate>
<asp:HyperLink Runat=server ID="myLink" NavigateUrl="[URL unfurl="true"]http://msn.com"[/URL] Text="MSN" />
</ItemTemplate>
</asp:TemplateColumn>
private void myGrid_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.SelectedItem)
{
HyperLink hl = (HyperLink)e.Item.FindControl("myLink");
if(hl.Attributes["title"] == null)
{
hl.Attributes.Add("title", "whatever");
}
}
}
<asp:TemplateColumn>
<ItemTemplate>
<asp:HyperLink Runat=server NavigateUrl="[URL unfurl="true"]http://msn.com"[/URL] Text="MSN" title='<%# DataBinder.Eval(Container.DataItem, "fieldName") %>' />
</ItemTemplate>
</asp:TemplateColumn>