Ankur jain
Ankur jain

Reputation: 993

How to open a dialog box in asp.net?

I am creating a online exam web application in asp.net, i want to open a conformation message box or alert message box on button clicking when user submit the test or fill user information and other task?

Upvotes: 0

Views: 1125

Answers (3)

geekchic
geekchic

Reputation: 1566

alert(message) or confirm(message) are useful javascript functions. Alert just shows the user a message, whereas confirm displays a confirmation box and allows you to get a boolean value back from the user.

Upvotes: 0

JML
JML

Reputation: 382

you can just plain javascript like this for an alert on the button: onclick="alert('hello')"

  • or for anything fancy I would seriously consider using jQuery dialogs for it. You define the content of the dialog in a hidden div on the page and use a script to attach the dialog to the div by id. Have a look at

http://docs.jquery.com/UI/Dialog

Upvotes: 1

Sachin Shanbhag
Sachin Shanbhag

Reputation: 55489

you can use alert(message) function through javascript to show any message

Upvotes: 0

Related Questions