Professional Documents
Culture Documents
Js 2
Js 2
In the application that we worked with in Part 1, comment the call to ValidatForm()
method. This is the server side method that validates form input. At this point the
code in btnSubmit_Click() method should be as shown below.
protected void btnSubmit_Click(object sender, EventArgs e)
{
//if (ValidateForm())
//{
SaveData();
//}
}
Run the application and click the Submit button, without filling any data. Notice
that an empty row is inserted into Users table.
client side validation vs server side validation in asp.net
If JavaScript is disabled and if we don't have any server side validation, there
could be different threats ranging from storing invalid data to security
vulnerabilities.
JavaScript tutorial
Email This
BlogThis!
Share to Twitter
Share to Facebook
Share to Pinterest
13 comments:
Reply
Replies
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Replies
Reply
Reply
Reply
Reply