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 -

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -