?
Solved

How to open new window from GridView

Posted on 2009-05-12
1
Medium Priority
?
651 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 750 total points
ID: 24362428
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month13 days, 8 hours left to enroll

801 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