We have a webpage that uses an Image control to display a company logo. We have a FileUpload control that allows the user to browse and upload a brand new image or replace an existing image. After the postback it does not display the new image but it does
upload it. If I leave the page and come back then the new image displays. Below is my upload code. I have tried it both with and without a Redirect at the end of the code and it still is not showing the new image. Any help is appreciated.
Protected Sub BtnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles BtnUpload.Click
If FileUpload1.HasFile Then
Dim tx As TextBox = Page.Master.FindControl("txtMsg")
Dim img As String = String.Empty
Dim bolError As Boolean = False
Dim bmpImg As Bitmap = Nothing
Dim fileName As String = Path.GetFileName(FileUpload1. ...
Go to the complete details ...