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
halvorn
NA
33
0
client should be able to store information to file, trough save as dialog box
Mar 21 2009 6:01 PM
hello,
I have a web application where the user should be able to store some information locally if he likes, for instance in a txt file. The info is supposed to be catched from a string value, so it not about reading from an existing file stored on the server. The user should be allowed to chose target location on his computer.
If I have string variable1 in my c# code which contains some text.
How do i fit this into something like this so the user can save the info without it being stored on server?
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment; filename=" + _file.Name);
Response.AddHeader("Content-Length", _file.Length.ToString());
Response.ContentType = "application/octet-stream";
Response.WriteFile(_file.FullName);
Response.End();
Reply
Answers (
1
)
Error ' in link c# with prolog by DLL files
How to Expand the particular node of tree view and collapse all other nodes with a button click