ASP.NET MVC 全离线网站
我制作了一个 ASP.NET MVC 应用程序,它允许用户创建动态网站。我需要添加功能,允许从服务器离线版本的所选网站下载静态 html 文件,其中包含菜单、超链接、图像、文档等。它的工作原理应该与 Teleport Pro 等应用程序类似,但我必须从中进行选择管理面板应导出哪些内容。
客户想将静态网站刻录到CD上,保存在随身碟上。
您有什么想法如何开始吗?请帮忙。
I made an ASP.NET MVC application which allows user to create dynamic websites. I need to add feature which will allow to download from server off-line version of choosen website as static html files with menu, hyperlinks, images, documents etc. It should work similar to applications such as Teleport Pro, but I have to choose from Admin Panel which content should be export.
Client wants to burn static website on CD, save on pendrive.
Do you have any ideas how to begin? Please help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我目前已经在当前项目中实现了这一点...
用户可以更改前端和页面中的任何内容最后他可以发布和下载离线文件...该网站订阅用户并显示所有奖品、获奖者以及有关该活动的更多信息。
所有操作均在 .NET4 下的 ASP.NET MVC3 中完成,并托管在 应用程序港。
它由多个应用程序组成,但根据您的需要,您可以开发后端和前端,并生成静态文件,只需使用前端来获取完整的 HTML
作为示例,我可以展示 2 个用户做了什么...
< strong>Callme.dk 做了 http://callme.julekal.info 并且
Sony Nordic 做了 http://sony.julekal.info
另外,您可以简单地将自定义域也指向它,例如 http://sonynordicxmas.net/
要发布并生成所有内容文件:
编辑的一部分:
所以我为用户提供离线访问(通过
.zip
文件)、在线访问(通过前端应用程序)以及使用自定义域的能力......I currently have implemented that in a current project...
User is able to change anything in the frontend and at the end he can publish and download the offline files... the site subscribe users and show all prizes, winners and more information about that campaign.
All was done in ASP.NET MVC3 under .NET4 and hosted in AppHarbor.
It's composed at several applications but for what you want, you develop the Backend and the Frontend, and to generate the static files, simple use the Frontend to grab the full HTML
As an example, I can show what 2 users did...
Callme.dk did http://callme.julekal.info and
Sony Nordic did http://sony.julekal.info
plus, you can simply point custom domains to it as well like http://sonynordicxmas.net/
To publish and generate all files:
one part of the editing:
So I give the users, offline access (through the
.zip
file), online access (through the frontend application) and the ability of using custom domains...我认为唯一可能的方法是,如果您转到每个页面,然后使用浏览器“保存”网页脚本和所有内容。
然而,这会导致几个问题;
这是太多的工作,我认为它实际上违反了真正的要求。
不要这样做! :)
I think the only way this might be possible is if you go to every single page and then use your browser to "Save" the web page script and all.
However this causes several issues;
This is too much work and I think it actually breaks the true requirement.
Don't do it! :)