Click here to Skip to main content
15,891,687 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
HI Friends,

i am using web application with code behind VB

i have one button in than BUtton event i called Javascripts in onclick event

the javascripts validate funcation but the page post back to server.

can you give me solutions for that one.

THanks

VIjay.S
Posted
Comments
bbirajdar 14-Aug-12 2:47am    
There are thousands of ways to get the code screwed. How can we guess which one is your favourite unless we see your code?

1 solution

Call Javascript function on onclient rather than click event of button..In javascript function when validation is fail then return false otherwise return true..
 
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