Apr 19, 2013, 12:17 PM
[CLOSED] Proper Ext.encode() usage
Hi,
This question has probably been asked several times before but I still couldn't string all the info together. I'm trying to HTML-encode a string on the client and then decode it on the server. If I use Ext.encode(), what's the appropriate method to decode it on the server? What's the reverse sequence like if a string needs to be encoded on the server first and then decoded on the client? Several encoding methods are available provided by both ASP.Net and Ext.Net and obviously they don't mix well. There's that HttpUtility class and a rich Ext.Net.Utilities namespace to choose from. For now, I've resorted to using the generic window.escape() method on the client with subsequent Ext.Net.Utilities.EscapeUtils.Unescape() method call on the server.
Could you please provide an example or tutorial link where one encoding method should be chosen over another?
This question has probably been asked several times before but I still couldn't string all the info together. I'm trying to HTML-encode a string on the client and then decode it on the server. If I use Ext.encode(), what's the appropriate method to decode it on the server? What's the reverse sequence like if a string needs to be encoded on the server first and then decoded on the client? Several encoding methods are available provided by both ASP.Net and Ext.Net and obviously they don't mix well. There's that HttpUtility class and a rich Ext.Net.Utilities namespace to choose from. For now, I've resorted to using the generic window.escape() method on the client with subsequent Ext.Net.Utilities.EscapeUtils.Unescape() method call on the server.
Could you please provide an example or tutorial link where one encoding method should be chosen over another?
Last edited by Daniil; Apr 19, 2013 at 3:23 PM.
Reason: [CLOSED]