Hi. I am trying to load an image from folder to an image box. This is the code I am using.Protected Sub btnup_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnup.Click, btnup.Click, btnup.ClickIf FileUpload1.HasFile ThenTryFileUpload1.SaveAs(
"C:\Inetpub\wwwroot\WebApplication1\images" & _FileUpload1.FileName)
Label1.Text =
"Image Loaded"Catch ex As ExceptionLabel1.Text =
"ERROR: " & ex.Message.ToString()End TryElseLabel1.Text =
"You have not specified a file."End IfIf FileUpload1.HasFile ThenImage1 = System.Drawing.
Image.FromFile("C:\Inetpub\wwwroot\WebApplication1\images")End IfEnd SubI am getting a message:value of type'system.drawing.image' cannot be converted to 'system.web.UI.webcontrols.image' Any help with this will be gratefully appreciated.
Corkman