0

Possible Duplicate:
save as dialog in asp.net

i need to use SaveFileDialog in asp.net to save TextFile in Client PC. how can i do that ? i don't want to upload to server then download. i need to save in Client Pc Directly . Is there an alternative Control in asp.net

Community
  • 1
  • 1
Mounir
  • 281
  • 3
  • 10
  • 25
  • Could someone explain the downvote here? It appears the OP is not familiar with the framework; in which case, this would be a perfectly reasonable question for someone to ask. – bbosak Oct 06 '11 at 22:30

1 Answers1

2

You could use Silverlight or Flash. However, in a web browser, it is NOT possible to run C#/ASP.NET code directly on the client. Keep in mind that your ASP.NET code runs on the server, not the client. The only way to save a file to the client PC would be to either use Silverlight/Flash (which both have equivalent controls), or require the client to download the file from the server.

bbosak
  • 5,353
  • 7
  • 42
  • 60