Here
I will explain how to show or display alert message using jQuery in asp.net.

Description:

In previous articles I explained many articles relating to jQuery.
Now I will explain how to show or display alert message using jQuery in asp.net.

By
using jQuery Plugin We can implement this functionality for that we need to
write the code like this

<htmlxmlns="http://www.w3.org/1999/xhtml">

<headrunat="server">

<title>jQuery Show Simple
Alert Message Example</title>

<scriptsrc="http://code.jquery.com/jquery-1.8.2.js"></script>

<scripttype="text/javascript">

$(function () {

$('#btnClick').click(function () {

alert('Alter with jQuery Button
Clicked');

});

});

</script>

</head>

<body>

<formid="form1"runat="server">

<div>

<inputid="btnClick"type="button"value="Click"/>

</div>

</form>

</body>

</html>

If you observe above code in header section I added one
script file by using that we can interact with jQuery and we have a chance to implement
required things. Here I written code like show alert message when we click on
button.