在ASP.NET MVC中创建包含布局页面内容的动态页面 [英] Creating a dynamic page with layout page content in ASP.NET MVC

查看:62
本文介绍了在ASP.NET MVC中创建包含布局页面内容的动态页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I am using Asp.net MVC4 i want to create dynamic pages for client.It's should be on admin side and admin can create new pages. I searched many times but still nothing found plz i any one can tell me
Thanks





我尝试了什么:



我想从很多个小时开始我非常感谢你



What I have tried:

I am trying from many hours I am very thank full to you

推荐答案

你好,



Re:
Hello,

Re:
Creating a dynamic page with layout page content





答:您可以使用数据库存储动态页面的基本HTML和Javascript内容,并将内容加载为主页上的局部视图。在主页面上添加了布局。



步骤:1将动态页面基本结构保存到数据库表格中。

步骤:2创建一个空白页面用于添加动态内容。它应该是共享页面。

步骤:3在共享页面上添加了布局。

步骤:4创建新页面时。从数据库中获取动态页面内容并绘制在共享页面上。



如果您有任何疑问,请随意询问。



Answer: You can use Database for store the basic HTML and Javascript content of dynamic page and load the content as partial view on main page. Added Layout on main page.

Step: 1 Save your dynamic page basic structure into Database table.
Step: 2 Create a blank page for add the dynamic content. It should be shared page.
Step: 3 Added you layout on shared page.
Step: 4 When you create a new page. Take dynamic page contents from Database and plotted on shared page.

Please ask freely if you have any question on it.


这篇关于在ASP.NET MVC中创建包含布局页面内容的动态页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆