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 !




Download in asp.net with C# coding?


Posted Date: 25 Jul 2008      Total Responses: 3

Posted By: Legend        Member Level: Silver     Points: 1


Hai friends,
My asp page contains a gridview , and gridview have a button called download

How I will download the file from any location , If i will click the download button in gridview

How will i write the code in asp.net with C# coding

do any body have coding OR some sample project

Thanks and Regards,
Kugan.T




Responses

Author: Ramesh    25 Jul 2008Member Level: BronzeRating:     Points: 2
just replace button with the link(server anchor tag) and apply the link to that file which is to be downloaded...


Author: Rishanthan    25 Jul 2008Member Level: BronzeRating:     Points: 3
<script type ="text/javascript" >
function clk()
{
this.document.execCommand('SaveAs',null,'test.csv');

return false;
}

</script>
call this function in onclientclick



Post Reply
You must Sign In to post a response.
Next : backbutton in asp.net
Previous : about coding
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

teleconferencing

Contact Us    Privacy Policy    Terms Of Use