I shifted your source code from answer to the issue.Also add the collection below to the PageLoad Web page.Form.Characteristics.Add(enctype, multipartform-data).I believe (essential component of program code in not really shown, thats the problem) I noticed whats going wrong -- please take a appearance at my reply.Importantly, your code sample shows nothing about the button which is certainly supposedly called btnSave and nothing indicates that an occasion handler btnSaveClick is certainly added to an invocation list of the event instance Click on of this switch.
Upload File Hasfile Always False Code From AnswerIs will be not demonstrated in this switch related to the blog post of the file or not. So, I only can believe that the problem is associated to this key and the event handler: what happens in this occasion handler occurs before publishing of the file, or file is not really submitted at all. ScriptManager scriptManager ScriptManagér.GetCurrent(this.Web page); Put THE SCRIPT MANAGER ON Content material OR Get better at Web page scriptManager.RegisterPostBackControI(this.btnSubmit); SUBMlT Switch ON THE PAGE. This should end up being create in button click event,the upload path can become provided Iike this if (Fileupload.HasFiIe) string inputfileName Fileupload.FileName; Fileupload.SaveAs(Server.MapPath(filename included folder name) inputfileName). To get started, simply start keying your question below and either go for one particular of the suggested queries or question a fresh question of your own. What has me therefore confused can be that about a 30 days ago it has been working great and I havent touched any program code that would effect it at all since then, I even rolled back again the code (of the whole task) with resource handle to last version where I understood the upload handle was working and nevertheless no move. Upload File Hasfile Always False Install With GainOh and I was working on a nearby IIS install with Gain 8.1 and DNN Neighborhood 07.01.02 and SQL convey 2012 with all present improvements.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |