.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal

Home >> Code Snippets >> Javascript >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

SaveFileDialog in ASP.NET

Posted By:Praveen       Posted Date: December 03, 2008    Points: 10    Category: Javascript    URL: http://www.dotnetspark.com  

Like windows application SaveFileDialog, its possible to have the same SaveFileDialog box in asp.net. Well ASP.NET does not provide any SaveFileDialog control to user in but using Javascript its possible.

Below is the Javascript code to open SaveFileDialog in asp.net

function pageLoad()




You can call this in any javascript event of the form For Eg., I am calling in BodyOnLoad event fo the form

<body onload="javascript:pageLoad()">

Happy Coding!!!


Further Readings:

    Author: Ramesh         Company URL: http://www.dotnetspark.com
    Posted Date: February 10, 2009

    Thanks Sir..

    I was looking for the savefileDialog box in asp .net as we have the built in control in windows application using javascript is easy as lo..

    Thanks for sharing the code to open savefiledialog in asp.net.

    Post Comment

    You must Sign In To post reply
    Find More code samples in C#, ASP.Net, Vb.Net and more Here

    Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend