Last post Jan 23, 2014 06:36 AM by smirnov
Jan 23, 2014 02:00 AM|skumarp83|LINK
I used Server.HTMLEncode/HTMLDecode method to save in DB and show in text box respectively. But when I show in RadGrid with item template and Label control.
It show alert instead of as text. Its working fine with simple textbox control but perhaps, issue with controls inside grid.
One more thing I don't want to use ValidateRequest = false; any how as it may restrict to save such text.
Sample code I am using for Grid. I also tried in code behind with itemdatabound event of grid to bind Label.
Jan 23, 2014 02:43 AM|smirnov|LINK
It show alert instead of as text.
Jan 23, 2014 06:31 AM|skumarp83|LINK
Thanks for ur reply. We can use Replace method also but I used HtmlEncode /HtmlDecode method bcoz is inbuilt method and is specially for Script Injection problem so incase any changes in future by Microsoft will automatically be impletemnted
But still my problem same here as aftr grid bind, paheLoad method will be called on Clientside and then Script will be excuted.
Jan 23, 2014 06:36 AM|smirnov|LINK