Message
First of all, greetings to my second article. I am a newbie in ASP.NET but trying to regularly write code in the famous CodeProject site and I am also a huge fan of the famous c-sharpcorner site.
Getting to my point, this article is very big for me because I have no deep knowledge about the lovely and smart jQuery concept or JavaScript. When I login on this site I came to realize that can I provide this type of login facility in any one of my sites. So I decided to make this type of login function and share with other guys.
Why we need combination of jQuery and Ajax
jQuery is lovely library that helps us to send the data on the server side and get results back using powerfull Ajax tools. Ajax is a tool used to send data to the server without the page fully reloading and without a post-back. See the following screen shot, here when we press the submit button it sends the data on the server without a page post-back. When our page does a full post-back it is often consumed by a rendering into a HTML control. So why is there a need to do a complete rendering of the page if we have Ajax and jQuery tools, which means write less and do more.
- jQuery library file
- If you have greater version of jQuery no need this version.
- jQuery-1.6.4.js version
- jQuery-1.8.0.min.js.
Add a jQuery Reference in aspx page
Here is a jQuery reference to be added to the test page.
<script src="jquery-1.6.4.js" type="text/javascript"></script>
<script src="jquery-1.8.0.min.js" type="text/javascript"></script>
Note: If you don't have this library then you can't run this project properly. You can download this version of jQuery from the official website; try this link: http://jQuery.com/download/
$.ajax is a main function that contains various sub-functions like type. Type is divided into two parts, one is Post and the other is Get. When I make a request to the server it's either of the two types, Post or Get. Get is a fresh Request and post is re-request.



Join the conversation! Your thoughts help the community grow.