Modal pages in ASP.NET

  • Thread starter Thread starter Ricardo Tineo
  • Start date Start date
R

Ricardo Tineo

Hi.. i'm start to developing a web application in ASP.NET.
In a requirement i need display modal pages to retrieve
additional information. How is possible to do this in
ASP.NET?
I seen examples using javascript code, but this work with
side-client controls. Anyway, what is the best solution
for this?

regards,

Ricardo Tineo Tambini
 
There is no server-side modal constructs because the server does not render
any code or have directly control over the browser. All they you can do is
send HTML to the browser which will limit your solution to client-side code.
You would use the showModalDialog function on the client.
 
I'm not sure that you mean. The showModalDialog only displays a webpage
which allows you to have any server content that you want (no different than
if you entered the URL in the address manually).

I was working on a project not too long ago that experience problems with
modal dialogs where postback events would not happen as expected. Our
solution to that was to display the modal dialog with an html page that
contained nothing more than an iframe. This iframe would contain the actual
page that we wanted. Is this the problem you are encountering?
 
Don't worry.. i tried to recover the value of a TextBox
(server-side) and yes it could do it...
thanks..
Ricardo
 
Back
Top