Solved

How to open new window from GridView

Posted on 2009-05-12
1
641 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
1 Comment
 
LVL 9

Accepted Solution

by:
VikramMullick earned 250 total points
ID: 24362428
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
This video discusses moving either the default database or any database to a new volume.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now