473,403 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

New window from LinkButton?

I need to be call up a new page from a hyperlink in a DataGrid.
Unfortunately, I'm not allowed to pass any querystring values so I
decided to use a TemplateColumn containing a LinkButton instead of using
a HyperLinkColumn.

Using the LinkButton, I can set session variables that the new page will
use at startup. What I can't figure out is to open a new window.

Any ideas?

--
There are 10 kinds of people. Those who understand binary and those who
don't.

http://code.acadx.com
Nov 17 '05 #1
2 4927
for the linkbutton, add an attribute to the onclick event, calling a
Javascript Open Window function
LinkButton.attributes("Onclick")="WindowOpenFuncti ongoesHere();"
David Wier
http://aspnet101.com
http://aspexpress.com
"Frank Oquendo" <fr****@acadx.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I need to be call up a new page from a hyperlink in a DataGrid.
Unfortunately, I'm not allowed to pass any querystring values so I
decided to use a TemplateColumn containing a LinkButton instead of using
a HyperLinkColumn.

Using the LinkButton, I can set session variables that the new page will
use at startup. What I can't figure out is to open a new window.

Any ideas?

--
There are 10 kinds of people. Those who understand binary and those who
don't.

http://code.acadx.com

Nov 17 '05 #2
David Wier wrote:
for the linkbutton, add an attribute to the onclick event, calling a
Javascript Open Window function
LinkButton.attributes("Onclick")="WindowOpenFuncti ongoesHere();"


I've got that in my code now but it doesn't seem to be working. I think
the postback is interfering somehow. The original page reloads but the
new one never opens.

--
There are 10 kinds of people. Those who understand binary and those who
don't.

http://code.acadx.com
Nov 17 '05 #3

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

Similar topics

1
by: Nevyn Twyll | last post by:
I have a DataList; in the DataList's , I have a LinkButton and a few listboxes. When the LinkButton is pressed, I need to get the ID of the selected item in one of the Listbox controls. Then I...
2
by: ChrisB | last post by:
I'm attempting to open a new window from a LinkButton in a DataGrid. I can set a session variable in the ItemCommand event for the LinkButton like so: // this is used to handle the ItemCommand...
1
by: George Durzi | last post by:
I have a DataGrid which contains 1 visible column which is a LinkButton: <Columns> <asp:BoundColumn DataField="ProductId" Visible="False"></asp:BoundColumn> <asp:BoundColumn...
5
by: George Durzi | last post by:
I currently have an href inside of an asp:repeater <a href='<%# String.Concat("PDFReader.aspx?id=", DataBinder.Eval(Container.DataItem, "ProductUniqueId")) %>' target="_blank">View</a> ...
2
by: RJN | last post by:
Hi I have a datagrid which has linkbutton as a template column. The Linkbutton is used to open new windows. I can open multiple windows at a time. On close of any of the child windows,(i.e, on...
5
by: rockdale | last post by:
Hi, all: I have a linkbutton and I use javascript to open another webpage in a new window. I also want to set my session variable value when this linkbutton get clicked. These session variable...
1
by: settyv | last post by:
Hi, I need to open PDF document in new window when i click on linkbutton in datagrid.For that i have written code as below: But the problem with this code is that it opens the new window ,but...
1
by: settyv | last post by:
Hi, I need to open PDF document in new window when i click on linkbutton in datagrid.For that i have written code as below: But the problem with this code is that it opens the new window...
6
by: SAL | last post by:
Hi, VS2005 post I'm opening a window using the following syntax: Protected Sub lbEstValue_Click(ByVal sender As Object, ByVal e As System.EventArgs)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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...
0
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,...
0
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...

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.