Click here to Skip to main content
15,918,178 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
am creating a page which requires links if submit button is clicked it should navigate to home page.how should i do that plz help me
Posted

First we are not clear that what other operation there on submit button, is it a server side control or just html input??
assuming that your submit button is a html submit button, will call a javascript function to go to home page like this:
JavaScript
<script type="text/javascript">
       function NavigateToHome() {
           location.href = "Home.aspx";
       }
   </script>

HTML
<input type="submit" id="btnSave" value="Submit!!!" onclick="NavigateToHome();" />
 
Share this answer
 
v2
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900