fileupload in gridview

Posted by Sepede123 under ASP.NET on 9/6/2011 | Points: 10 | Views : 2068 | Status : [Member] | Replies : 1
i have a gridview with some columns that one of them is image column and i put fileupload object in this column at edittempelate mode and i want when i click on edit button in gride view the fileupload object authomatically show the path of picture that its row is chosen for edit ?
and,i save path of picture in database but i dont which code i use that fileupload show that authomatically when i execute it
of course it located in edittemplate of grideview ,i wrote thise code but it didnot answer!
protected void FileUpload2_Load(object sender, EventArgs e)
DataSet set=new DataSet();
string str1="select image from book ";
SqlDataAdapter da =new SqlDataAdapter(str1,con);

FileUpload FileUpload2=(FileUpload)sender;

infact i dont want use sqldatasource object, ihandle it whit codebehind


Posted by: Jayakumars on: 9/29/2012 [Member] [MVP] Bronze | Points: 25

what issue face this?

Mark as Answer if its helpful to you

Sepede123, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response