开发者

How to open a dialog box in asp.net?

开发者 https://www.devze.com 2023-02-18 22:55 出处:网络
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 su开发者_如何学运维bmit the test or filluser informa

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 su开发者_如何学运维bmit the test or fill user information and other task?


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


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消