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

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...
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.