Monday, May 13, 2013

jquery redirect to another page in

Title:How to redirect the from one page to other page in using Jquery

Basically the scripting language are used to perform dynamic data processing on client side.It will be improve the performance of application
In previous examples i have given Validate dropdownlist using Jquery,JqueryUI Autocomplete textbox,Jquery Modal popup for mail in,Jquery Get next/previous month of year.Here i would like explain how to redirect to other page when click on the button in using jquery. We can use location method in two ways as you can see in the script
<html xmlns="">
<head runat="server">
<script src=></script>
<script type="text/javascript">
$(document).ready(function () {
$('#btnRedirect').click(function () {
window.location.href = 'About.aspx';
// or you can use
// location.href = 'About.aspx';
return false;
<form id="form1" runat="server">
<asp:Button ID="btnRedirect" runat="server" Text="Redirect" />

No comments: