从数据库加载网站 [英] Load website from database
本文介绍了从数据库加载网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想创建一个数据库驱动的网站意味着所有页面只能在某些查询中从数据库加载?
任何想法,帮助,文章,链接???
提前谢谢?
asp.net 4.0和数据库mssql 2008?
I want to create a database driven website means all the pages has to be load from database only on some query?
any idea,help,article,link???
Thanks in advance?
asp.net 4.0 and database mssql 2008?
推荐答案
你可以将整个页面划分为一些iframes / div
接下来将保存的内容作为innerhtml加载到div上,或者创建一个临时的html页面来包含你的html脚本。
加载和提取可以使用后端编码完成。
如果我把它改为一个由cms驱动的网站。否则道歉。
you can divide the whole page into some iframes/div
next load saved content onto the div as innerhtml or create a temporary html page conatining your html scripts.
loading and fetching can be done using backend coding.
if I got it right its a cms driven website. else apologies.
如果我理解正确,您需要为您的Web应用程序使用CMS。
查询数据库并从页面标题获取所有详细信息来自db的页眉/页脚/正文/布局详细信息。
查看此处的链接,
为ASP.NET创建内容管理系统 [ ^ ]
使用ASP的基本内容管理系统。 NET和MS Access [ ^ ]
希望这会有所帮助。
欢呼
If I have understood you correctly, you need the CMS for your web Application.
Query the database and get all the details from page title to header/footer/body text/layout details from db.
Check the links here,
Creating Content Management System for ASP.NET[^]
Basic Content Management System with ASP.NET and MS Access[^]
Hope this helps.
cheers
这篇关于从数据库加载网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文