How to ScriptControl AddCode() in C#? -


i'm using code in c#:

    msscriptcontrol.scriptcontrol script = new msscriptcontrol.scriptcontrol();     script.language = "javascript";     script.reset();     script.addcode(); // line problem. 

i want using code in rsa.js:

    function creatersakey(id, pw, sessionkey, keyname, evalue, nvalue)     {       var rsa = new rsakey();       rsa.setpublic(evalue, nvalue);        var comval = getlenchar(sessionkey) + sessionkey + getlenchar(id) + id;       return rsa.encrypt(comval + getlenchar(pw) + pw);     } 

would tell me, how write code @ script.addcode. please :)


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

django - CSRF verification failed. Request aborted. CSRF cookie not set -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -