c# - AsyncFileUpload Dynamically add in custom control -
creating 1 custom control have async file upload control. when trying add async fileupload in control not able add getting complie time error. following code
using system; using system.collections.generic; using system.linq; using system.text; using system.threading.tasks; using ajaxcontroltoolkit; using system.web.ui; using system.web.ui.webcontrols;  namespace sbits.customcontrol { class customfileupload:compositecontrol {      private asyncfileupload asyncfileupload;      private image throbberimage;       protected override void createchildcontrols()     {          this.throbberimage = new image();         this.throbberimage.imageurl = constant.throbber_image_path;         this.controls.add(throbberimage);          this.asyncfileupload = new asyncfileupload();         this.asyncfileupload.throbberid = throbberimage.id;         this.controls.add(asyncfileupload);     } }  } getting error on line
 this.controls.add(asyncfileupload); error screen
compile time error
got resolution issue  added reference of system.web.extension project , done.


Comments
Post a Comment