CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.faq_frequently_asked_questions Tags:
Item Type: NewsGroup Date Entered: 12/31/2003 5:46:26 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 39 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
PLBlum
Asp.Net User
Can you open a new window from a post back?12/31/2003 5:46:26 PM

0/0

This question has been asked time and time again. When the server sends HTML to a browser, these two rules are followed:
1. The browser must have requested the page via an HTTP GET or POST. (The server cannot change a page without the browser asking for it.)
2. The browser will only retrieve the HTML into the window that requested it.

There are only two ways to open a new window that I know about:
1. The <a> tag includes a target= property specifying a new window. (The HyperLink webcontrol is simply a way to generate the <a> tag. It includes a Target property.)
2. Use JavaScript such as a window.open or window.createPopup.

The <a> tag opens the new window before posting back and requests the new HTML from that new window.

The JavaScript technique requires that the original page already contains the JavaScript or when the server posts back, the browser is sent new HTML containing the new JavaScript to the original window. That means the original page's contents are replaced.

If you want to use the JavaScript technique to open a new window on post back:
1. Prepare the HTML necessary for the original page to draw.
2. Use Page.RegisterStartupScript() to call window.open. This will allow the new window to popup as the original window is loaded.
--- Peter Blum
Creator of Professional Validation And More Suite, Peter's Date Package, and Peter's Polling Package
www.PeterBlum.com
ariya
Asp.Net User
Re: Can you open a new window from a post back?2/4/2004 10:11:13 AM

0/0

hi all ,

you can do it, just read this and you have done it !

http://dotnetjohn.com/articles/articleid88.aspx

ariya
PLBlum
Asp.Net User
Re: Can you open a new window from a post back?2/6/2004 6:22:00 PM

0/0

The article makes sense although it opens a window based on a click after the page reloads, not immediately on post back.
--- Peter Blum
Creator of Professional Validation And More Suite, Peter's Date Package, and Peter's Polling Package
www.PeterBlum.com
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Beginning Jboss Seam: From Novice to Professional Authors: Joseph Faisal Nusairat, Joseph Nusairat, Pages: 350, Published: 2007
Special Edition Using WordPerfect Office X3 Authors: Laura Acklen, Read Gilgen, Pages: 979, Published: 2006
JavaScript Bible Authors: Danny Goodman, Michael Morrison, Pages: 1236, Published: 2004
Google: The Missing Manual Authors: Sarah Milstein, J. D. Biersdorfer, Rael Dornfest, Matthew MacDonald, Pages: 446, Published: 2005
Blogging and RSS: A Librarian's Guide Authors: Michael P. Sauers, Pages: 272, Published: 2006
Windows Vista All-in-One Desk Reference For Dummies Authors: Woody Leonhard, Pages: 792, Published: 2007
Building Web Sites All-in-One Desk Reference For Dummies: All-in-one Desk Reference for Dummies Authors: Doug Sahlin, Claudia Snell, Pages: 768, Published: 2006
Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages Authors: Jacob J. Sanford, Pages: 474, Published: 2007

Web:
Can you open a new window from a post back? - ASP.NET Forums Re: Can you open a new window from a post back? 02-04-2004, 5:11 AM ... Re: Can you open a new window from a post back? 02-06-2004, 1:22 PM ...
Open a new window and set session variable? - .NET ASP Can I let the linkbutton execute postback to set the session variable's value and also execute client javascript to open a new window? ...
Cross Page Postback to a New Window - Webradiance By joining us today you can take part in our rapidly growing community. ... First to open the window and cross post your data you need to ...
Interface with popup window after postback : postback, window ... 3, Opening new window after postback · ASP.Net Programming .... After your PageA has reloaded you can refetch PageB window without changing PageB actual URL ...
Beware of Opening Links in a New Window [Usability and Information ... Unexpected surprises can be fun, but not when you're browsing the Web. The act of opening a new browser window resets the back button in that window. ...
C# ASP.NET Response.Redirect Open Into New Window « dotNetChris ... This is happening because of auto postback property of a dropdown list ... will post those to the current window and only open the new window when you click ...
Open a New Window and Pass Parameters in ASP.Net [Archive] - DevX ... When I click on a print button I want to open a new window .... the reload will cause a postback and not a page load, if you want a page. ...
Forms in Modal IE Window create a new window on postback! How can I prevent a postback event to open a new window to ... *only* way I have found to solve the problem you describe is to have the ...
CodeSnip: Opening Crystal Reports in a New Window in ASP.NET: ASP ... You can use this code snippet to open any type of file in a new window. ... You need some sort of postback, and the target on a link won't cause a postback. ...
Adobe Forums - Open weblink in new window 1) Open a new window with the link you want then 2) Do a history.back to ... Just click on the Edit button which follows your message after you post it. ...

Videos:
Digidesign Pro Tools 7.3 New Window Configurations Save Your Views Save up to 99 of your favorite window views with the new Window Configurations feature (aka "screen sets"), which allows you to have...
Testing New Pen Cam A video showing some test shots of the pen cam I got. It functions as a color video/sound spy cam and a real pen that writes. The cam can be perfec...
Dan Lok's Turnkey Affiliate Program - How To Promote Using Forums Part 1 A step-by-step tutorial showing you how to promote products for Dan Lok's Turnkey Affiliate Program.
Call Of Duty 4 Glitches-Block KnMGlitches presents. Call Of Duty 4 Glitches-Block Call Of Duty 4 Two ways to get on top of Block **Don't forget to subscribe there will be more vi...
Open Source Drug Discovery for Neglected Diseases Google TechTalks April 07, 2006 ABSTRACT Marc works with an initiative that seeks to make biological and genomic data open and available such that a...
PARAMORE-FENCES :) w/LYRiCS the single "fences" by paramore. ---want me to post up another song u like?...tell me in a commetn and i will :) heres the lyrics : I'm sitting i...
Dan Lok's Turnkey Affiliate Program - How To Promote Using Forums Part 2 A step-by-step tutorial showing you how to promote products for Dan Lok's Turnkey Affiliate Program.
Something new a Jonas Brothers Love Story chapter 10 She drives them to the airport Mrs. J: You guys take care of Frankie! Frankie: Bye Mommy! Mrs. Jonas leaves and they get into the terminal and wait t...
Bright Eyes - Bowl of Oranges (Cover) originally, i wanted to post this up on new year's day - to start off the year with something optimistic, but insecurity got the best of me this son...
Jonas Love My Best Friend's Hot Chapter 13 pt 2 Hey guys... im so sorry for the long wait... but its a long story... lets just say i couldnt post for multiple reasons... for a long time lol... but ...




Search This Site:










dnn upgrade machine keys problem

webparteditor -- and what vars to put in there, versus other db store.

problem with setup visual studio 2005

user impersonation problem

mimicking access's tools and applications

how to set up dnn on a linux server?

microsoft commerce starter kit (ibuyspy)

what happened to the c# samples?

system.net.mail class smtpdemo needs users address in message body from txt.emailaddress

asp competition project

how to add new access rules without go to web admin tools

is it necessary to use mvc(model, view, controller) pattern for asp.net application for a commercial web site in real world?

makecert

creating the eventlog for visual studio applications

retrieve userid of a logged in user

online virus scaner....how do they work?

ftp code for active mode (vb.net 2.0 )

error: edit document entry is currently unavailable.

urgent how to copy the file from client to server

custom module null exception

ms sql and iis are in differnt servers. can i use integrated windows authentication?

bind list to checkboxlist control

deleted home page

spezial web.config

business management module

ie frameset locking on file download

tree view

use of application variable and session variable

problem with master pages

country drop-down...let's make it smarter

 
All Times Are GMT