V24s

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

Search This Blog v24s guys

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 

No comments:

Popular Posts

Recent Posts

Google Analytics