472,351 Members | 1,586 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,351 software developers and data experts.

Gridview hyperlinkfield - pop new window with certain attributes

I prototyped an html table that has a hyperlink that pops a window
showing a map of the entry from the that table. The link looks like
this:

<a href="authenticate.asp" onClick="window.open('authenticate.asp?
code=COUNTRYSIDEESTATES','gismap','toolbar=no,menu bar=no,location=no,directories=no,status=yes,scrol lbars=yes,resizable=yes,copyhistory=no,height=600, width=800');return
false">Map</a>

Now that the department has settled on the fields they want in the
database I have converted the page to a gridview bound to a
sqldatasource. The 'code' attribute in the link above is a field in
the table.

In my aspx page, I have bound the 'code' and havesuccessfully gotten a
pop up window that zooms the map to the proper entry in the table, but
the window contains the toolbar, menu, etc., which I want removed from
the pop up.

Currently the hyperlinkfield code looks like this:

<asp:HyperLinkField
Text="Map" DataNavigateUrlFields="SUB_CODE"
DataNavigateUrlFormatString="authenticate.asp?code ={0}" Target=_blank
>
<ItemStyle Width="28px" />
</asp:HyperLinkField>

How do I get the toolbar, menu, etc. removed within the hyperlinkfield
code? Any tips on re-using the window if the user hasn't closed it
would be appreciated. Thanks.

Aug 31 '07 #1
1 11352
in client script, use window.open. this should be fired from a click
event or the browser will think its a popup to block.

you might want to switch to a floating iframe instead.

-- bruce (sqlwork.com)

bo********@gmail.com wrote:
I prototyped an html table that has a hyperlink that pops a window
showing a map of the entry from the that table. The link looks like
this:

<a href="authenticate.asp" onClick="window.open('authenticate.asp?
code=COUNTRYSIDEESTATES','gismap','toolbar=no,menu bar=no,location=no,directories=no,status=yes,scrol lbars=yes,resizable=yes,copyhistory=no,height=600, width=800');return
false">Map</a>

Now that the department has settled on the fields they want in the
database I have converted the page to a gridview bound to a
sqldatasource. The 'code' attribute in the link above is a field in
the table.

In my aspx page, I have bound the 'code' and havesuccessfully gotten a
pop up window that zooms the map to the proper entry in the table, but
the window contains the toolbar, menu, etc., which I want removed from
the pop up.

Currently the hyperlinkfield code looks like this:

<asp:HyperLinkField
Text="Map" DataNavigateUrlFields="SUB_CODE"
DataNavigateUrlFormatString="authenticate.asp?code ={0}" Target=_blank
<ItemStyle Width="28px" />
</asp:HyperLinkField>

How do I get the toolbar, menu, etc. removed within the hyperlinkfield
code? Any tips on re-using the window if the user hasn't closed it
would be appreciated. Thanks.
Aug 31 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: dm1608 | last post by:
I have a GridView that is displaying a field as a hyperlink. I would like to add an onclick event to open another browser window using javascript....
0
by: coosa | last post by:
Dear all, I tried to replace the GridView Column's HyperLinkField "DataNavigateUrlFormatString" property with a java script pop up window, but...
1
by: willip | last post by:
I have a Gridview control with a Databound Hyperlink. e.g.: <asp:HyperLinkField HeaderText="MyTitle" DataNavigateUrlFields="MyID"...
2
by: SP | last post by:
Hi, I need a GridView that when I click on a row or on a HyperLinkField a javascript call raise . It is possible? The grid is in a window open...
1
by: spitapps | last post by:
I have a gridview declaratively added to my webform. This gridview displays data from a stored procedure returned as a dataset. Once the dataset...
0
by: rmgalante | last post by:
Hi, I've been experimenting with the ASP.Net GridView and encountered some interesting issues that I thought I would share. I have a page that...
8
by: =?Utf-8?B?TWlrZSBSYW5k?= | last post by:
I am trying to get a list of files from a specified directory using the System.IO namespace classes, and then use that list as the datasource for a...
0
by: bodamithun | last post by:
Hi all, For some weird reason my hyperlinkfield does not work. <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"...
9
by: rosoft | last post by:
Hi I'm using a GridView to list data from a table in my database. On of the fields is a URL and when I click a row in the GridView I want the...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.