954,514 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Popup window close

asp.net ( c#)

I have parent window and popup new page from parent window In popup page i'm creating textbox dynamically and in button close i have to get that textbox values and i have to close the popup window

haripriyamca05
Newbie Poster
6 posts since Nov 2010
Reputation Points: 10
Solved Threads: 0
 

Hi haripriyamca05 and welcome to DaniWeb :)

Please note that there is an ASP.NET forum here at DaniWeb where you can ask ASP.NET questions.

That said, all you need to do in your popup form is listen to the form Closing event, and read the TextBox.Text properties for each text box in your form.

Example:

this.Closing += new EventHandler(form_Closing);

private void form_Closing(object sender, CancelEventArgs e)
{
   string aString = myTextBox.Text;
   // do something with aString here...

   string anotherString = myOtherTextBox.Text;
   // do something with anotherString here...

   // and so on...
}
darkagn
Veteran Poster
1,197 posts since Aug 2007
Reputation Points: 404
Solved Threads: 200
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: