Tuesday, August 14, 2018

jam JavaScript for web form validations into the C# code behind and have it bubble up to the HTML markup?

You may do so like this...

this.Head.LocalValidateContent.Add("if (pageForm.reviewName)");

 
 

...and not just this one line of code. This one line of code would be chased with several just like it which will add up to a JavaScript script. Ghetto!

No comments:

Post a Comment