Custom/Div Based Alert In ASP.NET
The post is about implementing Custom/Div based alert messagebox in ASP.NET, using jQuery/jQuery UI dialog plugin. This can be a required thing when you are asked not to use default Browser alert box.
You may would like to use jQuery UI dialog to implement customized alert/confirm boxes. In this way, you can provide the buttons, messages, title as well as actions, which you desire.
Here, I have written a small Webform to show a customized alert box, using jQuery UI Dialog:
You can have Ok, Yes & No, Ok & Cancel. Any combination of buttons are required and can write the code in click event in the code snippet given above.
Similar to this alert box, you can use same method to implement Confirm box, Success message box (which shows by itself and then disappears without any action).