Loading ...

message box in asp.net

Who is online?  0 guests and 0 members
home  »  forums   »  asp.net topics   »  web forms / data controls   » message box in asp.net

message box in asp.net

Posts under the topic: message box in asp.net

Posted: 3/2/2009

Lurker 13  points  Lurker
  • Joined on: 12/30/2008
  • Posts: 6

hi ...

i  want a  message box into asp.net  which will be returning values when press yes or no ? i were done it by using java script alert or confirm but problem is that i m not able to use the return values when clicking ok or cancel..
if any idea plz send code rather then alert and confirm...of java script.?
waiting for reply?


Posted: 3/2/2009

Contributor 4863  points  Contributor
  • Joined on: 11/27/2008
  • Posts: 79
  Answered

Hi,

Since ASP.NET is state-less, it is not easy to use pure JS to communicate with the server side code. You will need to create your won controls using server side code as shown in these articles:

http://www.dnzone.com/go?813

http://www.codeproject.com/KB/webforms/NingLiangSimpleControl.aspx

Hope this helps,

Vivek


Posted: 4/7/2009

Lurker 48  points  Lurker
  • Joined on: 2/1/2009
  • Posts: 9
  Answered

You can use jquery impromptu.

URL: http://trentrichardson.com/Impromptu/index.php

(If you can play well, you can use javascript confirm box also.)


Posted: 4/15/2009

Professional 8093  points  Professional
  • Joined on: 4/15/2009
  • Posts: 423
  Answered

ashwini said:

  want a  message box into asp.net  which will be returning values when press yes or no ?

Hi,

If you need to have a Customized MessageBox in ASPNET then you can create UserControl as your MessageBox..

See the following links below for demo:

ASP.NET Popup Message Box User Control

ASP.NET Messagebox - Server and Client


Posted: 3/6/2010

Guru 16518  points  Guru
  • Joined on: 4/19/2009
  • Posts: 483
  Answered

Please look over the last example at here:

http://www.ericmmartin.com/projects/simplemodal-demos/


Page 1 of 1 (5 items)