Click here to Skip to main content
16,019,246 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
When I enter too many special characters in textbox in gridview in update panel....it fires proper validation msg...Below is code for regular expression
"[\s_A-Za-z0-9]+"
Gridview has two buttons..update and cancel...When enter special character it throws proper error msg.It wont allow to update record.But when clicks on cancel button grid should be in ideal position.But it gives below error


Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

when first enter < and after that / gives above error........

please help me
Posted
Updated 12-Aug-13 0:09am
v3
Comments
OriginalGriff 12-Aug-13 4:22am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Use the "Improve question" widget to edit your question and provide better information.
_Asif_ 12-Aug-13 4:24am    
how on earth did you notice that the error is in regular expression? the message you showed us does not reflecting that. Error 500 means something happened to your web server. Check you event viewer to get a precise error and let us know that

Hello

Refer to below link

http://forums.asp.net/t/1750082.aspx/1[^]

I think it will be helpful.


Thanks
 
Share this answer
 
Add validateRequest="false" in the <%@ Page directive.

Thanks,
 
Share this answer
 
Comments
16Sonali 12-Aug-13 4:31am    
I did the same but it is not working....

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