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
Post a Comment