469,623 Members | 1,505 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,623 developers. It's quick & easy.

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 11196
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by dm1608 | last post: by
reply views Thread by rmgalante | last post: by
8 posts views Thread by =?Utf-8?B?TWlrZSBSYW5k?= | last post: by
9 posts views Thread by rosoft | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.