use Modal Dialog in ASP.NET

  • Thread starter Thread starter Grey
  • Start date Start date
This can be achieved only on client side. Use javascript call window.showModalDialog (..).

Eliyahu
how to show Modal Dialog in ASP.NET, pls give me some example..
 
Grey said:
how to show Modal Dialog in ASP.NET, pls give me some example..
--

You should Write HTML and JavaScript code eg.

Literal lc = new Literal();
lc.Text = "<BUTTON onclick=\"javascript:
window.showModalDialog('GetTxt.asp','','dialogHeight:200px,dialogWidth:40px;status=no';\"></BUTTON>

Add the literal to a control eg. the aspx Form you are

Controls.Add(lc);

and you are ready
 
Back
Top