Hi All,
Can anyone tell me how to open a new window when user clicks a button?
Thanks.
John 6 3588
You can do it with some client side javascript such as this:
window.open('WebForm2.aspx','_new')
Here's more information: http://msdn.microsoft.com/workshop/a...ods/open_0.asp
--
I hope this helps,
Steve C. Orr, MCSD http://Steve.Orr.net
--------------------------------
Hire top notch developers to get your projects done right: http://www.able-consulting.com
--------------------------------
"JohnG" <JG******@rogers.com> wrote in message
news:3R********************@news04.bloor.is.net.ca ble.rogers.com... Hi All, Can anyone tell me how to open a new window when user clicks a button? Thanks.
John
You can do it with some client side javascript such as this:
window.open('WebForm2.aspx','_new')
Here's more information: http://msdn.microsoft.com/workshop/a...ods/open_0.asp
--
I hope this helps,
Steve C. Orr, MCSD http://Steve.Orr.net
--------------------------------
Hire top notch developers to get your projects done right: http://www.able-consulting.com
--------------------------------
"JohnG" <JG******@rogers.com> wrote in message
news:3R********************@news04.bloor.is.net.ca ble.rogers.com... Hi All, Can anyone tell me how to open a new window when user clicks a button? Thanks.
John
Hi, Steve,
Thank you for the reply. Will this method be able to pass data (page
property) to the new page? I want to pass data to the destination page using
page property.
John.
"Steve C. Orr, MCSD" <St***@Orr.net> wrote in message
news:ew**************@TK2MSFTNGP10.phx.gbl... You can do it with some client side javascript such as this:
window.open('WebForm2.aspx','_new')
Here's more information: http://msdn.microsoft.com/workshop/a...ods/open_0.asp -- I hope this helps, Steve C. Orr, MCSD http://Steve.Orr.net -------------------------------- Hire top notch developers to get your projects done right: http://www.able-consulting.com -------------------------------- "JohnG" <JG******@rogers.com> wrote in message news:3R********************@news04.bloor.is.net.ca ble.rogers.com... Hi All, Can anyone tell me how to open a new window when user clicks a button? Thanks.
John
Hi, Steve,
Thank you for the reply. Will this method be able to pass data (page
property) to the new page? I want to pass data to the destination page using
page property.
John.
"Steve C. Orr, MCSD" <St***@Orr.net> wrote in message
news:ew**************@TK2MSFTNGP10.phx.gbl... You can do it with some client side javascript such as this:
window.open('WebForm2.aspx','_new')
Here's more information: http://msdn.microsoft.com/workshop/a...ods/open_0.asp -- I hope this helps, Steve C. Orr, MCSD http://Steve.Orr.net -------------------------------- Hire top notch developers to get your projects done right: http://www.able-consulting.com -------------------------------- "JohnG" <JG******@rogers.com> wrote in message news:3R********************@news04.bloor.is.net.ca ble.rogers.com... Hi All, Can anyone tell me how to open a new window when user clicks a button? Thanks.
John
You could pass data to the new page via Session State.
Or you could do it via querystring like this:
window.open('WebForm2.aspx?MyID=43','_new')
--
I hope this helps,
Steve C. Orr, MCSD http://Steve.Orr.net
--------------------------------
Hire top notch developers to get your projects done right: http://www.able-consulting.com
--------------------------------
"JohnG" <JG******@rogers.com> wrote in message
news:Ra********************@news04.bloor.is.net.ca ble.rogers.com... Hi, Steve, Thank you for the reply. Will this method be able to pass data (page property) to the new page? I want to pass data to the destination page
using page property.
John.
"Steve C. Orr, MCSD" <St***@Orr.net> wrote in message news:ew**************@TK2MSFTNGP10.phx.gbl... You can do it with some client side javascript such as this:
window.open('WebForm2.aspx','_new')
Here's more information: http://msdn.microsoft.com/workshop/a...ods/open_0.asp -- I hope this helps, Steve C. Orr, MCSD http://Steve.Orr.net -------------------------------- Hire top notch developers to get your projects done right: http://www.able-consulting.com -------------------------------- "JohnG" <JG******@rogers.com> wrote in message news:3R********************@news04.bloor.is.net.ca ble.rogers.com... Hi All, Can anyone tell me how to open a new window when user clicks a button? Thanks.
John
You could pass data to the new page via Session State.
Or you could do it via querystring like this:
window.open('WebForm2.aspx?MyID=43','_new')
--
I hope this helps,
Steve C. Orr, MCSD http://Steve.Orr.net
--------------------------------
Hire top notch developers to get your projects done right: http://www.able-consulting.com
--------------------------------
"JohnG" <JG******@rogers.com> wrote in message
news:Ra********************@news04.bloor.is.net.ca ble.rogers.com... Hi, Steve, Thank you for the reply. Will this method be able to pass data (page property) to the new page? I want to pass data to the destination page
using page property.
John.
"Steve C. Orr, MCSD" <St***@Orr.net> wrote in message news:ew**************@TK2MSFTNGP10.phx.gbl... You can do it with some client side javascript such as this:
window.open('WebForm2.aspx','_new')
Here's more information: http://msdn.microsoft.com/workshop/a...ods/open_0.asp -- I hope this helps, Steve C. Orr, MCSD http://Steve.Orr.net -------------------------------- Hire top notch developers to get your projects done right: http://www.able-consulting.com -------------------------------- "JohnG" <JG******@rogers.com> wrote in message news:3R********************@news04.bloor.is.net.ca ble.rogers.com... Hi All, Can anyone tell me how to open a new window when user clicks a button? Thanks.
John
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Lorenzo |
last post by:
I had to transfer an ASP Web Application (developed by another person) to a
different web server. It seems to work but not completely.
I have some problems with authentication: it is based on a...
|
by: Lisa |
last post by:
I have a Perl script that's called as a CGI to handle the form
submission from a browser, thru which a user from the web can up load
an image file. I would like, when the user clicks the "Send...
|
by: Jackson Yap |
last post by:
can someone kind enough to help me look at the attached html and js
file? Why is it that the javascript menu could not work at
www.apchosting.net but could work at...
|
by: RJN |
last post by:
Hi
Is it possible to a server.transfer and open the page in a new window? I
need to pass values between forms and hence using server.transfer. I do
not want to use query string for passing...
|
by: Charlie Garrett-Jones |
last post by:
i have a server side generated web application that provides parameter forms
and always opens the associated reports in a new browser window. the code
that controls the opening of the new browser...
|
by: DiLwALi |
last post by:
Hello,
I am pretty new to asp.net and have been given the task to create and
internal website.
There is a drop down list on the site and a submit button.
The user selects a report from the...
|
by: Gunawan |
last post by:
Dear All,
I would like to know how to disable 'open in a new tab' or 'open in a new
window' feature coz I would like to maintain parameter using session id
which is not change if we using those...
|
by: R Reyes |
last post by:
Whenever I right-click on "Open in New Tab/Window" my website ALWAYS opens in
the same window/tab. This is most likely a programming issue because when I
visit other websites it works just fine. ...
|
by: Luqman |
last post by:
How can I open another WebForm in ASP.Net / VS 2005 without closing the
Current Webform.
I tried using Server.Transfer("Form2.Aspx",True) on Button_Click of Form1
but it close the current web...
|
by: ravindarjobs |
last post by:
Hi friends,
i am handling a very old project developed in .net 2003 version (1.1 framework).
i submit form with method="post" and
I pass lots of values from a form to other and read...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
| |