Link to home
Start Free TrialLog in
Avatar of arifpervez
arifpervezFlag for United Kingdom of Great Britain and Northern Ireland

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="CentreID,CentreName,Region"
DataNavigateUrlFormatString="javascript:window.open('M_CentreAppeal.aspx?CID={0}&CName={1}&RG={2}','Test','width=500,height=500')" HeaderText="Centre ID"  
ControlStyle-Width="75" ItemStyle-HorizontalAlign="Center">
<ControlStyle Width="75px"></ControlStyle>
</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
Avatar of VikramMullick
VikramMullick

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial