Click here to Skip to main content
16,015,973 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

Please anyone suggest me, how to add an URL to the hyperlink field in a gridview?

I have the following tags:

VB
<asp:HyperLinkField DataNavigateUrlFields="MobileNo"
                                                DataTextField="MobileNo"
                                                HeaderText="Mobile Number"
                                                SortExpression="ProductName" />
Posted

1 solution

http://authors.aspalliance.com/aspxtreme/webforms/controls/addinghyperlinkfieldstogridview.aspx[^]

Google[^] has many more links if this is what you want.

[Edit] HyperlinkField.Target[^] can be set to _blank to get a popup.
 
Share this answer
 
v2
Comments
Raj.rcr 21-Feb-11 5:44am    
ya its correct.. but I want to know how to display the pop up window as an url..
Prerak Patel 21-Feb-11 7:06am    
HyperlinkField.Target may help you. Edited the answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900