Re: Close a Form on Server Side!

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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


.



Relevant Pages

  • How to create a global hotkey?
    ... user hits a key combination, ... but all of the keypress detecting libraries I can find count on ... you creating a window and then detecting keypresses while that window ... I just want to be able to be able to globally detect a keypress. ...
    (comp.lang.python)
  • Re: window close box
    ... > user if they would like to write the dirty file, ... > user hits the window close box on Windows? ... Prev by Date: ...
    (comp.lang.perl.tk)
  • how to handle F1 key with CHtmlView
    ... I have an app whose main window is a CHtmlView. ... When the user hits F1, ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: how to handle F1 key with CHtmlView
    ... > I have an app whose main window is a CHtmlView. ... When the user hits F1, ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Slow Soft-RAID 5 performance
    ... The Kernel boot log is attached as boot.msg ... MEM window: disabled. ... registered new interface driver usbfs ... Loading ide-core ...
    (Linux-Kernel)