Hi all,
I have problem with gridview.
I am binding University name and University URL to gridview. when i click on that URL in gridview it will open in new tab or new window.
Note: That URL taken as a linkbutton in gridview and also row command event is also there for gridview.
How to do it ?
Please help me.
Thanks On advance.
--Regards,
Lakshmi.
Loading
Priya LingePosted Aug 2, 2011, 8:45 AM
Following way you can go to new URL on linkbtn in gridview.
width=10% cellpadding=5 font-size="8pt"
autogeneratecolumns=False
headerstyle-backcolor="maroon"
headerstyle-forecolor="khaki"
headerstyle-font-bold
rowstyle-verticalalign="top" DataKeyNames="ID">
//Here you can give your URL which you want
datanavigateurlformatstring="hyperli.aspx?Name={0}"
datanavigateurlfields="Name" />
SelectCommand="SELECT * FROM [Customer]">
Please see the attached file.
Hope this will help you.
Thanks.
Krishna GaradPosted Aug 2, 2011, 8:42 AM