Difference between Hyperlink and HyperLinkField
what is the difference between Hyperlink and HyperLinkField?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Priya LingeRank #785 · 2.9K reputationPosted Jul 27, 2011, 8:48 PM EDT
1. HyperlinkField is a column type for data bound controls such as GridView. It will display a link for each
record in the data bound control.
width=90% cellpadding=5 font-size="8pt"
autogeneratecolumns=false
headerstyle-backcolor="maroon"
headerstyle-forecolor="khaki"
headerstyle-font-bold
rowstyle-verticalalign="top">
<columns>
datafield="id" />
datafield="Name" />
datafield="fee"
<asp:hyperlinkfieldheadertext="Title"
datatextfield="title"
datanavigateurlformatstring="page_details.aspx?id={0}"
datanavigateurlfields="id" />
htmlencode=false
dataformatstring="{0:n2}"
itemstyle-horizontalalign="right" />
columns>
asp:gridview>
2.Hyperlink would have to be declared inside an ItemTemplate in a GridView as it does not inherit from DataControlField.Hope this will help you.
Thanks.