Author: websolvent | Posted on: 10/9/2009 3:57:46 AM | Views : 220

I want that user to download file which is uploaded by admin. On download aspx i used a gridview which show data. I used link button in template field to download file. My code is below " SelectCommand="SELECT [id], [name], [contenttype], [month], [year] FROM [pdf] ORDER BY [id]"> ' CommandName ="Download">Download Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView1.RowCommand If e.CommandName = "Download" Then Dim Fileinfo() As String = e.CommandArgument.ToString().Split(";") Dim id As Integer = Fileinfo(0) Dim na ...

Go to the complete details ...