asp.net - Custom Control: Execute javascript during render -
i have custom asp.net control working on. during render method send javascript client browser modify appearance of control. working ok previous ajax library using, however, have moved telerik radajaxmanager , no longer working. @ render stage late me add response scripts executed.
any ideas how can overcome this? possibly send manual ajax request browser opposed response script?
here cut down version of previous code (using magicajax), trying replace equivalent calls using radajaxmanager:
protected override void render(htmltextwriter writer) { string strname = "div" + base.clientid; string strscript = "if (" + strname + ").clientheight" //and on .... if (magicajax.magicajaxcontext.current.isajaxcallforpage(this.page)) { magicajax.ajaxcallhelper.writeline(strscript); } base.render(writer); }
Comments
Post a Comment