file upload
-
hi i have assign file name in fileupload control text area while i am editing gridview i give a code like this but it display error fileupload_ads.FileName=gv_chadvert.Rows[e.NewEditIndex].Cells[4].Text; please help me
with regards, bretto
-
hi i have assign file name in fileupload control text area while i am editing gridview i give a code like this but it display error fileupload_ads.FileName=gv_chadvert.Rows[e.NewEditIndex].Cells[4].Text; please help me
with regards, bretto
You can't assign anything to the FileName property of the upload control. That would be a serious security hole, as you could access the contents of files on the client system by automatically uploading them. The user has to select the file to upload.
Despite everything, the person most likely to be fooling you next is yourself.