Solved

How to open new window from GridView

Posted on 2009-05-12
1
648 Views
Last Modified: 2012-05-06
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

0
Comment
Question by:arifpervez
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 9

Accepted Solution

by:
VikramMullick earned 250 total points
ID: 24362428
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question