Catching the exception due to RequestValidation
-
How can the exception generated due to Page validation be caught ? I am having RequestValidation=True (which is default) on my page. Now, if the user enters some HTML tags, an exception is generated ... How can that error be caught in the page where it occurred, so that the user can be asked not to enter html tags .... there itself .... Please help me here .... :)
Apurv A man is but the product of his thoughts. What he thinks, he becomes. .......Mahatma Gandhi Be the change you want to see in the world. .......Mahatma Gandhi
-
How can the exception generated due to Page validation be caught ? I am having RequestValidation=True (which is default) on my page. Now, if the user enters some HTML tags, an exception is generated ... How can that error be caught in the page where it occurred, so that the user can be asked not to enter html tags .... there itself .... Please help me here .... :)
Apurv A man is but the product of his thoughts. What he thinks, he becomes. .......Mahatma Gandhi Be the change you want to see in the world. .......Mahatma Gandhi
are you talking about
Page.IsValid
property... you will only find that in postbacks.Abhishek Sur My Latest Articles Basics on LINQ and Lambda Expressions
Create .NET Templates