c# - Couldn't assign value in FileUpload tool -


I grabbed the value from the database and I am trying to specify those values ​​in the edit form. But the only problem is with FileUpload. Do not take this price, anyone can recommend to me what I'm missing

  Private Zero editForDataByID (int titleId) {ReadmoreController objFormController = new ReadmoreController (); ReadMoreInfo objInfo = objFormController.GetListObjectOfAllArticle (titled); If (objInfo! = Null) {TextTitle.Text = objInfo.Title; txtSummary.Text = objInfo.Summary; TextDate.Text = objInfo.Date.ToString (); //FileUpload1.FileName=objInfo.Image; I also tried it, but this fileUpload1 = objInfo.Ige does not work; Session ["titled"] = title; ListDiv.Visible = false; form.Visible = true; BindGrid (); }}    

You assign not to the client security reason You can have the value as the FileUploadControl because the client may cause the reason to upload unwanted files from the machine, then use the file to upload use.

Important files such as c: \ PersonalPasswords

edit from a steel client machine if it is allowed Depending on the comments

If you need to ensure that the user has chosen an image and does not need to change it, then you can use image control and for this Assign Image. Use the same image control to know if the image has been selected or not.

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -