473,545 Members | 2,063 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="authentic ate.asp" onClick="window .open('authenti cate.asp?
code=COUNTRYSID EESTATES','gism ap','toolbar=no ,menubar=no,loc ation=no,direct ories=no,status =yes,scrollbars =yes,resizable= yes,copyhistory =no,height=600, width=800');ret urn
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 havesuccessfull y 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:HyperLinkF ield
Text="Map" DataNavigateUrl Fields="SUB_COD E"
DataNavigateUrl FormatString="a uthenticate.asp ?code={0}" Target=_blank
>
<ItemStyle Width="28px" />
</asp:HyperLinkFi eld>

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 11447
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********@gmai l.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="authentic ate.asp" onClick="window .open('authenti cate.asp?
code=COUNTRYSID EESTATES','gism ap','toolbar=no ,menubar=no,loc ation=no,direct ories=no,status =yes,scrollbars =yes,resizable= yes,copyhistory =no,height=600, width=800');ret urn
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 havesuccessfull y 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:HyperLinkF ield
Text="Map" DataNavigateUrl Fields="SUB_COD E"
DataNavigateUrl FormatString="a uthenticate.asp ?code={0}" Target=_blank
<ItemStyle Width="28px" />
</asp:HyperLinkFi eld>

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
1469
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. How can I accomplish this? I can do this successfully with just a simple HyperLink control. The HyperlinkField for a GridView doesn't compile with trying to set this attribute. As always, any...
0
1780
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 wehen i preview the page, the link is REMOVED! Does any one see any thing wrong in the code below? <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ITEM_ID"...
1
1267
by: willip | last post by:
I have a Gridview control with a Databound Hyperlink. e.g.: <asp:HyperLinkField HeaderText="MyTitle" DataNavigateUrlFields="MyID" DataNavigateUrlFormatString="~/ShowMe.aspx?MyID={0}" DataTextField="MyTitle" SortExpression="MyTitle"> With Norton Ad Blocking turned "Off" this works fine. Turn Norton Ad Blocking "On" and the rest of the...
2
17406
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 from a parent window. Onclick in a row selected, a field in a opener is fill with the data of the row selected. Thanks
1
4740
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 has been modified slightly i bind it to my gridview control. Now where and how would i go about adding a column to my gridview dynamically that is a checkboxfield and is checked based on some...
0
4812
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 loads a GridView with a generic collection of objects. For the purposes of this discussion, the objects define a Customer, and have an id and a name. I want to sort these customers by id or by...
8
9647
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 GridView. I have been able to do this successfully. The problem is when I try to hook up a HyperLinkField it's not working. Basically, what I want to end up with is to have the file name listed...
0
1265
by: bodamithun | last post by:
Hi all, For some weird reason my hyperlinkfield does not work. <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" > <Columns> <asp:HyperLinkField DataTextField="batchid" DataNavigateUrlFields="batchid"...
9
382
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 page to automaticly open that link. How do I write code to an event i the GridView so that when I click a row the page opens up the new link in another window? Lars
0
7470
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7811
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7428
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7760
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5975
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5334
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4949
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3455
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1887
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.