I have to generate a XML file which have details about its particular table row from a button, and will prompt a Save As dialog to User to sve the file.
我必须从一个按钮生成一个XML文件,其中包含有关其特定表行的详细信息,并将提示“另存为”对话框以向用户发送该文件。
I am a beginner in MVC and ASP.Net, but with the help of many blogs or examples available, I was able to create below things but I'm getting many build errors when I run or if I don't get the build errors then the button doesn't do anything.
我是MVC和ASP.Net的初学者,但在许多博客或可用示例的帮助下,我能够创建以下内容,但是当我运行时或者如果我没有得到构建错误时,我会遇到很多构建错误然后按钮什么都不做。
I referred this article to implement but not able to get much results : http://nraykov.wordpress.com/2010/06/27/show-save-as-dialog-with-content-disposition-response-header/
我提到这篇文章是为了实现但不能得到太多结果:http://nraykov.wordpress.com/2010/06/27/show-save-as-dialog-with-content-disposition-response-header/
Let me know if m miising any detail or u need some more information.
让我知道是否有任何细节,或者您需要更多信息。
Please suggest.
请建议。
1 个解决方案
#1
1
Guessing it's the ActionLink that doesn't create the correct URL for you.
猜测它是没有为您创建正确URL的ActionLink。
try this:
尝试这个:
@Html.ActionLink("Manifest", "Export", "Deployment", null, new {@class = "button"})
#1
1
Guessing it's the ActionLink that doesn't create the correct URL for you.
猜测它是没有为您创建正确URL的ActionLink。
try this:
尝试这个:
@Html.ActionLink("Manifest", "Export", "Deployment", null, new {@class = "button"})