File Creation in Client Machine using asp.net RRS feed

  • Question

  • Hello..

    Anybody knows how to create a text file in client machine using asp.net code behind..

    Please suggest me any solution ..

    Thanks in advance...

    Monday, June 4, 2018 4:52 AM

All replies

  • I think that it is prohibited. But you can create the file on the Server, in some folder (using File.WriteAllText, for example; to get the path, see Server.MapPath). Then return a link to this file, so that the users will download the file.

    For various aspects, visit https://forums.asp.net/.

    Monday, June 4, 2018 6:18 AM
  • Hi raj.sibin,

    Thank you for posting here.

    Since your question is more related to ASP.NET, you could post a new thread in ASP.NET forum for suitable support.


    The CLR Forum discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection. Also discuss all the other Microsoft libraries that are built on or extend the .NET Framework, including Managed Extensibility Framework (MEF), Charting Controls, CardSpace, Windows Identity Foundation (WIF), Point of Sale (POS), Transactions.

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, June 5, 2018 1:56 AM