use Modal Dialog in ASP.NET

E

Eliyahu Goldin

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..
 
A

Amar

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

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top