add

Monday, 26 August 2013

Redirect to Another Page in Asp.net using jQuery

<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.js"></script>
</head>
<body>
<input type="button" id="btnclick" value="Redirect" />
<script type="text/javascript">
    $(function () {
        $("#btnclick").click(function () {
            var url = 'http://www.aspdotnet-suresh.com';
            $(location).attr('href', url);
        })
    });
</script>
</body>

No comments:

Post a Comment