arifpervez
asked on
How to open new window from GridView
Hi
I am using ASP.Net 2.0 with VB. From my page i have a GridView Control. In that GridView I have a hyperlinkfield. From that field I want to popup a new window. My code is -
<asp:HyperLinkField DataTextField="CentreID" DataNavigateUrlFields="Cen treID,Cent reName,Reg ion"
DataNavigateUrlFormatStrin g="javascr ipt:window .open('M_C entreAppea l.aspx?CID ={0}&CName ={1}&RG={2 }','Test', 'width=500 ,height=50 0')" HeaderText="Centre ID"
ControlStyle-Width="75" ItemStyle-HorizontalAlign= "Center">
<ControlStyle Width="75px"></ControlStyl e>
</asp:HyperLinkField>
but when I click the link it not working. Please can anyone tell me how i will do this.
Thanks in advance
I am using ASP.Net 2.0 with VB. From my page i have a GridView Control. In that GridView I have a hyperlinkfield. From that field I want to popup a new window. My code is -
<asp:HyperLinkField DataTextField="CentreID" DataNavigateUrlFields="Cen
DataNavigateUrlFormatStrin
ControlStyle-Width="75" ItemStyle-HorizontalAlign=
<ControlStyle Width="75px"></ControlStyl
</asp:HyperLinkField>
but when I click the link it not working. Please can anyone tell me how i will do this.
Thanks in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.