how to create a text file in asp.net MVC3 using c#

前端 未结 2 1321
伪装坚强ぢ
伪装坚强ぢ 2020-12-10 07:08

I just wanna ask how to generate or create textfile, becuase i want to display my data in the database as text.

im using c# in asp.net MVC 3

thank you very m

2条回答
  •  一生所求
    2020-12-10 07:35

    You can return plain text from an action by assembling a string and returning Content(textString, "text/plain").

提交回复
热议问题