Solved

How can I use the equivalent of "SaveFileDialog" in an asp.net web page?

Posted on 2010-09-13
3
418 Views
Last Modified: 2012-05-10
Can someone please give me an example or idea of how I can accomplish this?

I have done this using Windows Forms as....

   SaveFileDialog saveFile = new SaveFileDialog();
                saveFile.Filter = "Text Files (*.txt)|*.txt|" + "All Files|";
                saveFile.DefaultExt = "txt";
                saveFile.Title = "Save My File As";
                saveFile.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal);

                if (saveFile.ShowDialog() == DialogResult.OK)..................................


0
Comment
Question by:devnewbee
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 41

Assisted Solution

by:guru_sami
guru_sami earned 150 total points
ID: 33663261
0
 
LVL 75

Assisted Solution

by:käµfm³d 👽
käµfm³d   👽 earned 150 total points
ID: 33663318
Web pages do not have access to a client machine's local file system. You will be restricted to however the browser employed by your user decides to show a save file prompt.
0
 
LVL 3

Accepted Solution

by:
ghayasurrehman earned 200 total points
ID: 33663542
you can do this by changing headers of the http context

http://aspalliance.com/259

check the url, if you describe the extension in header, it will force the same
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Load XML element 3 41
Can Selenium do Load Testing? 2 56
How does this modal gets closed? 6 38
.NET XML to Dictionary - XML has repeating node names 8 25
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question