Floating Panel in ASP.NET...

T

The Eeediot

I would like to have a panel (i.e. DIV-layer) appear in the middle of a web
browser as a sort of pop-up window asking the standard "Are you sure?"
question. This panel would promptly become invisable after the response.

Are there any example of floating panels like this?

Is there a way to get this panel to appear in the middle of the available
screen, at least?

TIA...
 
R

Rob

The simplest way would be to use the javascript confirm function for
the appropriate event, which pops up a window as you describe e.g.
something like

<input onchange="return confirm('Are you sure you?')">

If confirm returns false, nothing happens.

Alterntively you could have an <asp:panel>,,,</asp:panel> section in
your .aspx and set its visbility true o false in the Page_Load or
event handling code of the code behind file (this solution invloves a
postback to the server of course).

Rob
 
K

Kevin Spencer

Sure. Use absolute positioning.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
 

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,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top