You must Sign In to post a response.
  • Category: ASP.NET

    How call this javascript hidden field call behind code in asp.net

    Hi,
    I want javascript hidden field values in behind code, because
    now a day we going software audited. I can use hidden field but
    he can clear text values.

    function InitializeRequest(path) {
    // call server side method
    var pwdhfld = document.createElement("INPUT");
    pwdhfld.type = "hidden";
    pwdhfld.name = "t";

    pwdhfld.value = path;
    document.forms[0].appendChild(pwdhfld);

    PageMethods.SetDownloadPath(path);
    }
  • #765616
    What you want to do ? do you want to secure your hidden field or what ?
    Hidden fields are insecure (not dependent on browser). But you can encrypt the data, to secure it, Never go for storing important info in the hidden varialbes, see below code
    http://www.codeproject.com/Articles/1967/Encryption-Decryption-with-NET

    Thanks
    Koolprasd2003
    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]


Sign In to post your comments