C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




downloading concept in asp.net


Posted Date: 28 Jul 2007      Total Responses: 2

Posted By: shishma.m       Member Level: Silver     Points: 2


hello !

my question is :
in my webpage: abc.aspx, i have a button. when i click on the button , anything related concepts has to be downloaded in my webpage/ system.

how to do this? want a full code with example.

hope u help.
shishma




Responses

Author: Ramasamy.N    28 Jul 2007Member Level: GoldRating:     Points: 2
use the following tag

<a href="aspbook.aspx" runat="server"></a>



Author: prabhakar    28 Jul 2007Member Level: SilverRating:     Points: 2
string filename = Path.GetFileName(filepath)
Response.Clear()
Response.ContentType = "application/octet-stream"
Response.AddHeader("Content-Disposition", _
"attachment; filename=""" & filename & """")
Response.Flush()
Response.WriteFile(filepath)




Post Reply
You must Sign In to post a response.
Next : urgent please
Previous : help me please
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

silicone halloween masks

Contact Us    Privacy Policy    Terms Of Use