asp.net - RadAsyncUpload in code behind, how to? -
my problem is, nothing happens, code behind doesn't fire...maybe point me in right direction. possible or totaly wrong here?
default.aspx:
<telerik:radprogressmanager runat="server" id="radprogressmanager1" /> <telerik:radasyncupload runat="server" id="asyncupload1" /> <telerik:radprogressarea runat="server" id="radprogressarea1" />
default.aspx.cs:
protected void asyncupload1_fileuploaded(object sender, fileuploadedeventargs e) { const string relativepath = "~/uploads/"; var filename = e.file.filename; var parentid = convert.toint32(gridview1.selectedvalue); var filesize = convert.toint32(e.file.contentlength); var physicalsavepath = mappath(relativepath) + filename; //store file info in database var app_filesadapter = new app_filestableadapter(); app_filesadapter.insert(filename, relativepath + filename, parentid, 1, datetime.now, filesize); //save physical file on disk e.file.saveas(physicalsavepath, true); }
Comments
Post a Comment