Solved

How to open new window from GridView

Posted on 2009-05-12
1
644 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
IIS redirect 1 77
Problem to refer to value 8 62
mail.To.Add 5 33
C# MVC Insert Multiple Row into DB 2 30
This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

809 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