Re: Close a Form on Server Side!
- From: Hans Kesting <news.2.hansdk@xxxxxxxxxxxxxxx>
- Date: Fri, 08 Dec 2006 17:04:45 +0100
Hi All! We all know how to close a form on a client side (self.close) etc...
but does someone know how to close a form on server side (C#)
I am opening a pop up window (loading an aspx form)
window.open(myform.aspx....)
I want to close this form once the user hits submit button on it and capture
the value entered in the text box and pass it to a third form (can use
session etc...) but someone other trick would be great.
TIA
You need to write some javascript that runs when the user clicks that submit-button, *before* the submit is performed.
You will need to have a reference to that popup window (you got that from window.open). Read the value that is there, put it in a hidden field in the main form and let the submit proceed.
Hans Kesting
.
- References:
- Close a Form on Server Side!
- From: Vai2000
- Close a Form on Server Side!
- Prev by Date: Re: Regarding Treeview in asp 2.0
- Next by Date: Problem accessing properties of Object returned in webservice
- Previous by thread: Close a Form on Server Side!
- Next by thread: Strange Source
- Index(es):
Relevant Pages
|