|
|
||||||
|
#1
|
|
|
|
|
in ASP .NET ( How can i open a new window ligaly ( not a popup ) and
in the same time redirect the main page without registering a script at start up which makes the explorer open the popup again when i press back.... |
|
|
|
#2
|
|
|
|
|
E.D.I.
Not sure exactly what you are looking for but: To send the window to a new address from the server use without opening a new window: Response.Redirect('url to open') or Server.Transfer('url to open'). To open a new window, you need to do that from the client with script: window.open('url to open','window name','attribute1,attribute2') If this does not help, please explain what you need in a little more depth. L. Lee Saunders http://oldschooldotnet.blogspot.com |
|
#3
|
|
|
|
|
actually there are 2 things i need to do in a one button click
1. open a new window or a new tab with a pdf 2. to navigate from the current window to another url what i have done till now is working fine except there are 2 major problems 1. the pop up blocker which block the new window 2. after i press back from the url i did navigate to it runs the script that was registered and pops the pdf again what i did in the code is i have created a script in the c# code and registered it to the startup. in the script i used first window.open for the new window and window.navigate for navigating to another url i didnt use Response.Redirect('url to open') co's it dosn't run the script for opening the new window SO FOR MY BOSES REQUEST I NEED TO OPEN A NEW WINDOW OR TAB WHICH IS NOT A POPUP is it possible ? and how tnx in advance |
|
#4
|
|
|
|
|
E.D.I presented the following explanation :
[..] > startup. > in the script i used first window.open for the new window and > window.navigate for navigating to another url > i didnt use Response.Redirect('url to open') co's it dosn't run the > script for opening the new window > > SO FOR MY BOSES REQUEST I NEED TO OPEN A NEW WINDOW OR TAB WHICH IS > NOT A POPUP > is it possible ? and how > tnx in advance I think the following will work: In the OnClientClick of the button, call a javascript function that opens your new window. This function should return "true". In the code-behind Click handler (server click), do a redirect to your new page. The ClientClick (regular onclick on the html button) is executed first, before the postback action (and if it returns 'false', the postback will not happen) By the way: this question belongs in the "framework.aspnet" newsgroup) Hans Kesting |
|
#5
|
|
|
|
|
this worked thank u very much for the help i really appreciate it
|
|
|
| Similar Threads | |
| need to open the aspx page in another window(just as popup) Hi, I have an htm page which transfers to another aspx page(Default.aspx). I need to open the aspx page in another window(just as popup). How can I set target property... |
|
| Need script ot open a popup window - and reload original page I need a script to open a popup window which contains a php form. after the form has been submitted or cancelled i need to go back to the originated page (php also) and... |
|
| window.open popup from maximized parent page? I am trying to create a popup page (to act as a menu) from a parent page. When the parent page (index.jsp) calls my popup function (see below) it will properly open the... |
|
| Open page in new window instead of using redirect I need to open a page in a new window from the code behind. Normally I use response.redirect to navigate to a new page but up to now its always been in the same window. I... |
|
| Open a window - get info - back to main page - in c# how? Ok I've spent the best part of today looking for information on this exceedingly common task with little progress! All I want to do is have a window (or a page I'm not... |
|
|
All times are GMT. The time now is 06:05 AM. | Privacy Policy
|