Saikiran Gst

Saikiran Gst

  • NA
  • 148
  • 22.3k

confirmation and navigate to another page

Jul 22 2014 11:51 AM
hi every one i need solutin for this code now working in my project 


code in aspx page:-
--------------------
<script type="text/javascript">
        function show() {
            if (confirm('r u sure?')) {
                window.location.replace('yourpage.aspx');
            }
        }
    </script>


code behind in .cs file:-
----------------

 else
                {
                    Page.ClientScript.RegisterStartupScript(this.GetType(), "open", "show();", true);
                }

Answers (1)