Gridview hyperlinkfield - pop new window with certain attributes

B

boevermann

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,menubar=no,location=no,directories=no,status=yes,scrollbars=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.
 
B

bruce barker

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top