Click here to Skip to main content
15,889,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I am using templates in grdview. The columns in the gridview can contains special characters like for example "<". The column data gets truncated when it tries to display the cell value with special character.
I looked up on the internet and I use HTMLEncode in the ItemTemplate and HTMLDecode in EditItemTemplate. Now, the truncation problem no longer exists. but, something really annoying happens. When I click the edit button in the row, the row goes into edit mode, and the characters appears in the decoded i.e. "<" format. Which is the right behavior. But, once this is displayed in edit mode, none of events like rowupdate or rowcancel events fire. Or in other words, clicking on Update or Cancel in the gridview row does nothing.

Can you please help.
P.S. I have also set hte Page directive's ValidateRequest to false.

Thanks
Posted
Comments
adriancs 5-Aug-13 22:17pm    
We can't tell what is the error with your code without seeing your code.
jaideepsinh 6-Aug-13 0:55am    
Hi namrata,
Can you paste some of your code.

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