Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / August 2007

Tip: Looking for answers? Try searching our database.

Gridview hyperlinkfield - pop new window with certain attributes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
boevermann@gmail.com - 31 Aug 2007 19:10 GMT
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.
bruce barker - 31 Aug 2007 20:25 GMT
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)

> 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
[quoted text clipped - 25 lines]
> code?  Any tips on re-using the window if the user hasn't closed it
> would be appreciated.  Thanks.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.