Hi, I am trying to solve this problem for 2 days with no success. Maybe one of you can help me.
I have a gridview that display list of emails at the top of the page and another user control that takes the selected email ID and display links of file attachments at the bottom of the page.
The problem is the user has to click the download file link one time to cause a postback, then click the same link again to download the file attachment. Any help would be appreciated.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If IsPostBack And Not IsNothing(Session("EmailID")) Then
Me.PlaceHolder1.Controls.Clear()
Me.PlaceHolder1.Controls.Add(LoadControl("FileAttachment.ascx"))
End If
End Sub
Protected Sub GridView1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GridVi ...
Go to the complete details ...