Floating Panel in ASP.NET...

  • Thread starter Thread starter The Eeediot
  • Start date Start date
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...
 
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
 
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

Back
Top