Search code examples
c#asp.netshowdialog

Pass data between web forms inside ASP.NET


In Winforms I Can do following

protected void SomeButonClick(object sender, EventArgs e)
{
ChildForm cf = new ChildForm();
cf.Grid = ParentForm.Grid
cf.ShowDialog();
//and so on
}

How I can accomplish something similar in ASP.NET WebForms.


Solution

  • There are a number of ways to approach this in ASP.NET. Your use of "ShowDialog" suggests to me that you will get what you want out of using jquery to launch a modal popup. There are several canned tools for this, like jquery popup.