connors511
New Member
i have use ascx it contain fileupload control to get the selected image path as a string in data base table filed using linq, and ascx is used in dotnetnuke module page.there is code which i have use in my ascx.cs but it not get the image path from fileupload control\[code\] FormViewRow row = FormView1.Row; FileUpload FileUpload1 = (FileUpload)row.FindControl("FileUpload1"); string filename = ""; string path; if (FileUpload1.HasFile) { filename = FileUpload1.PostedFile.FileName; path = Server.MapPath("DesktopModules/IndiesStore/Images/")+ FileUpload1.FileName; string onlyname = path.Substring(path.LastIndexOf("\\") + 1); IC.Img = "DesktopModules/IndiesStore/Images/" + onlyname; }\[/code\]there is an any solution of this....?