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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top