V24s

"Get Updates : Subscribe to our e-mail newsletter to receive updates........" "Good Luck frnds" Admission 2018 Application Form 2018 Colleges Entrance Exam 2018 Results 2018 Notification 2018 University Educational Jobs 2018 Government Jobs 2018

Search This Blog v24s guys

Follow by Email

15 April, 2013

jQuery Show Alert Message using Asp.net

Introduction

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

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>jQuery Show Simple Alert Message Example</title>
<script src="http://code.jquery.com/jquery-1.8.2.js"></script>
<script type="text/javascript">
$(function () {
$('#btnClick').click(function () {
alert('Alter with jQuery Button Clicked');
});
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input id="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. 

Live Demo

To see live demo click on below button it will show alert message 

Post a Comment
There was an error in this gadget

Popular Posts

Recent Posts

Google Analytics