hi
how to get the fileupload path from database
like
txtfname.Text = ds.Tables[0].Rows[0]["FirstName"].ToString();
here we get the name from database like how to get the fileupload path in fileupload control
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Santhosh Kumar JayaramanPosted Jan 9, 2013, 12:40 AM
File upload control is used to give option for user to select a file. Why do you want to show the previous file path when editing. It's not an ASP.Net restriction, it's actually how HTML does it. The reason? For security this is a really bad idea as it would give the ability for less than scrupulous individuals to create a form and place a path in an upload that points to files in the OS that could contain cookies, documents, or other sensitive files.
prathyushaPosted Jan 9, 2013, 12:32 AM
Santhosh Kumar JayaramanPosted Jan 9, 2013, 12:26 AM
Then i would say .net framework dont support.
'System.Web.UI.WebControls.FileUpload.FileName' cannot be assigned to -- it is read only