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

enter image description here

compile time error

enter image description here

got resolution issue added reference of system.web.extension project , done.


Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -