Top Ad unit 728 × 90

random

how to encode/decode plain text in .net.

 [Ajax.AjaxMethod(Ajax.HttpSessionStateRequirement.ReadWrite)]
        public string encodetext(string plaintext)
        {
            return WebUtility.HtmlEncode(plaintext);
        }

 
    [Ajax.AjaxMethod(Ajax.HttpSessionStateRequirement.ReadWrite)]
        public string decodetext(string encodedtext)
        {
            return WebUtility.HtmlDecode(encodedtext);
        }


how to encode/decode plain text in .net. Reviewed by Vikas Kumar Singh on December 03, 2017 Rating: 5

No comments:

All Rights Reserved by DotNetBasic.com © 2019

Contact Form

Name

Email *

Message *

© 2018 All rights reserved by DotNetBasic. Powered by Blogger.