Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

9
  • How would we handle strings that contain commas? I tried using double quotes as text qualifiers but it doesn't seem to work. Commented Mar 30, 2013 at 3:03
  • 1
    @mmssaann That's the beauty of it, you don't use javascript. You just set the href of your anchor tag to the action. <a href="ControllerName/ActionName">Download CSV</a> Commented Dec 3, 2013 at 18:18
  • 1
    I have set the href for anchor tag. It is working fine. However the I can still see the entire page is posted back. is there a way to restrict the postback? Commented Dec 4, 2013 at 4:17
  • 1
    @mmssaann You should ask a new question with details about your particular setup. Commented Dec 4, 2013 at 16:53
  • 1
    I use your way to create download CSV, everything seems ok, I debug, it goes to the controller. But the browser doesn't show any sign of download file? Do you think what's happen, I need to change Web.config or something? Commented Sep 25, 2018 at 11:47