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

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -