>I want to restrict my validation code to be displayed through view source. How >do I Do it
there is no direct way to restrict ur client side validation code for viewing.
but I cant understand, y there is any need to hide it ??
anyways.. there r lotssa ways like u can trap right click event of mouse, hide the status bar, u can use js or vbs files and include them etc etc...
though u can prevent the dumb user from being able to view source but intelligent developers. then the point is dumb users are not at all interested in ur code.
so the Best way to hide ur code is to use it on server side.
Best Luck..
Nilesh