TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rowshan Ali
NA
64
142.2k
Download .zip file in asp.net
Mar 5 2013 10:41 PM
Hello
dear i am in problem to download .zip file in computer . my recomendation is bellow.
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="Go" />
<asp:GridView ID="GridView2" runat="server" onrowcommand="GridView1_RowCommand">
<Columns>
<asp:TemplateField HeaderText="Select">
<ItemTemplate>
<asp:LinkButton ID="hypeno" runat="server"
CommandArgument='<% #Bind("zip") %>' CommandName="cmdBind"
Text='<%#Eval("zip")%>'>LinkButton
</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
------------------------
source code
-----------------------
Premier1888bdDataContext db = new Premier1888bdDataContext();
protected void Button1_Click(object sender, EventArgs e)
{
string a = TextBox1.Text;
var st1 = from s in db.POInfos where s.PONO == a select s;
GridView2.DataSource = st1;
GridView2.DataBind();
}
Input pono
Select
PONO
Project
ByerName
ShipmentDate
zip
dragpanel1.zip
20
PTL
Ikei
2/2/2013 12:00:00 AM
dragpanel1.zip
When i click the link in grid view this file download in F/ in computer.
my file location is "~/Web/Files/dragpanel1.zip"
If any body help me by giving Source code best regurds. thanks.
Reply
Answers (
1
)
How do I populate a combo box with a list of directories?
displaying a whole table from the database