Click here to Skip to main content
15,889,861 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I designed a static html page in which I have a submit button.

When the user clicks the button I need to write code for html control (submit button).

Please help me!

Thanks in advance
Posted
Updated 15-Nov-10 22:45pm
v3

This is done with so called "code behind" that is not executed on the client side but server side. You can combine this with javascript for better performance and user experience but the action itself is done on the server.

Have a look here for more info:
http://support.microsoft.com/kb/303247[^]

Good luck!
 
Share this answer
 
Comments
Dalek Dave 16-Nov-10 5:12am    
Good Link.
Since this is a static page you'll need to use Javascript of some description to trigger an action when the button is clicked. There are a myriad of examples here and through Google.
 
Share this answer
 
Use Hyperlink for navigation to new page in asp.net.
Follow as below.

<a href="/KB/answers/Home.aspx">Home</a>
 
Share this answer
 
Comments
Dalek Dave 16-Nov-10 5:12am    
Good 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