asp.net中的博客开发 [英] Blog Development in asp.net

查看:61
本文介绍了asp.net中的博客开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我想在asp.net中开发一个博客.我是Web开发的新手.我在开发中遇到问题.
有人可以给我一个大概的想法吗?

如何保存博客文章?
使用XML保存文章数据是否是个好主意?

我已经使用.txt && .doc文件进行数据保存,但是当我单击与该.txt或.doc文件关联的链接时,它会在单独的文件中打开,而不是在应用了母版页的目标页面中打开.

我知道这些是非常基本的问题,但是我对此有疑问.
帮我一个大概的主意,那就是如何将文章保存在文件中,例如.txt等.

例如,codeproject.com;每当我们单击与该链接相关的特定链接文章时,就会有链接.

问候

Hello,
I want to develop a blog in asp.net.I am new in web development. i am having a problem in development.
can somebody give me rough idea of:

How to save articles for blog?
Whether its good idea to use XML for saving article''s data?

I have used .txt && .doc file for data saving but when i click on link associated with that .txt or .doc file, it opens in separate file rather than in targeted page with master page applied on it.

I know these are very basic questions but i am having problem in this.
Help me, just a rough idea, that how to save articles, in which file e.g .txt etc .

For example, codeproject.com; there are links whenever we click on particular link article associated with that link opens.

Regards

推荐答案


您可以使用XmlDataSource控件
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.xmldatasource.aspx [ ^ ]

在线上会有很多文章,例如: http://www.4guysfromrolla.com/articles/092706-1 .aspx [^ ]

我不建议使用.txt或.doc作为数据源,但是当然可以.

我建议您首先查看asp.net示例,尤其是blogengine.net和亚文本 http://www.asp .net/web-forms/samples [^ ]
Hi
you can use the XmlDataSource control
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.xmldatasource.aspx[^]

There will be plenty of articles online , for example : http://www.4guysfromrolla.com/articles/092706-1.aspx[^]

I would not recommend using a .txt or .doc as a datasource but of course it is possible.

I suggest you start off by taking a look at the asp.net samples particularly blogengine.net and subtext http://www.asp.net/web-forms/samples[^]


我会为您回答两个主要问题,并为您指明正确的方向

如何保存博客文章?使用XML保存文章数据是否是个好主意?

您可以将它们放在数据库或XML文件中,但选择哪种取决于规模.如果您需要服务大量的访问者,那么像sqlserver这样的数据库也许是最好的选择.如果您想在Intranet中运行它,那么XML也是一个不错的选择.

现在,您可以发现此博客引擎对于理解各种与ASP.NET,degign和n层体系结构相关的问题很有用.

YaBlogEngine-用ASP.NET/编写的微型博客引擎C# [ ^ ]
I will answer two major questions for you and point you in the right direction

How to save articles for blog? Whether its good idea to use XML for saving article''s data?

You can wither put them in a database or XML file but which one you choose depends on scale. If you need to serve a lot of visitors then perhaps database like sqlserver is the best option. If ou want to run it in intranet then XML could also be a good choice.

Now you can find this blogengine useful to understand the various ASP.NET, degign and n-tier architecture related issues.

YaBlogEngine - A Tiny Blog Engine written in ASP.NET/C#[^]


这篇关于asp.net中的博客开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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