Hello, I have a code which can pass value of data selected from a row of gridview to another page. The data will then be display in a textbox for updates and edits. It works fine with text and dates, but i was wondering whether it can even obtain the path of the image? This is my code to store the image in database:
protected void Button1_Click(object sender, EventArgs e)
{
String Back = "Default.aspx";
if (FileUpload1.PostedFile != null &&
FileUpload1.PostedFile.FileName != "")
{
byte[] imageSize = new byte
[FileUpload1.PostedFile.ContentLength];
HttpPostedFile uploadedImage = FileUpload1.PostedFile;
uploadedImage.InputStream.Read
(imageSize, 0, (int)FileUpload1.PostedFile.ContentLength);
SqlConnection con = new SqlConnection();
con.ConnectionString = ConfigurationManager.ConnectionStrings["S ...
Go to the complete details ...