在asp.net中创建博客的大纲 [英] Outline for creating a blog in asp.net

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

问题描述

1。作为读者,我希望在我的主页面中看到十篇文章列表(最近发表五篇,其余五篇观看最多),我可以阅读其中任何一篇。

2.作为读者,我想阅读一篇作家的文章和读者的评论。

3.作为读者,我想在一篇文章中发表评论。 (只有在我登录后)才能让作家或其他读者在那里看到我的意见/反馈。

4.作为文章作家,我想创建新文章(标题,正文(包含)我可以稍后发布。

5.作为一篇文章作家,我想写,保存和发表我的新文章。

6.作为文章和图片)读者,我想搜索带有自由文本的文章,以便我可以从过滤的文章列表中选择任何人。



只需要一个大纲来解决问题。如何处理?我是asp.net的初学者

1. As a reader, I want see the ten articles list (five are most recently published, remaining five are most viewed) in my main pageso that I can read anyone of these.
2. As a reader, I want to read an article of a writer and readers’ comments.
3. As a reader, I want to comment in an article. (Only when I have logged in) so that writer or other reader can see my opinion/feedback there.
4. As an article writer, I want to create new article (Title, Body (consists of text and pictures) so that I can publish it later.
5. As an article writer, I want to write, save and publish my new article.
6. As a reader, I want to search articles with free textso that I can select anyone from the filtered article list.

Just needed an outline to solve the problem. How to approach? I am beginner in asp.net

推荐答案

概述不解决问题,编码也是如此。所以开始学习在asp.net中编码。

ASP.NET入门 [ ^ ]
Outlining does not solve problems, coding does. So start learning to code in asp.net.
Get Started with ASP.NET[^]


对于ASP.NET中的初学者,创建一个BLOG可能过于雄心勃勃而无法用作短期目标。

你可以找到任何可以教你ASP.NET C#(或VB)的地方。一些,例如下面引用的http://www.asp.net/get-started,是免费的。我目前最喜欢的是PluralSight.com。您的学习风格将决定视频或基于文本的学习是否对您更好。

如果您想要的是博客,那么我建议使用ASP.Net C#编写的DNN(DotNetNuke) - 如果你把它提供给公众,请保持修补!



既然你已经要求提供一个大纲,我会给你一个开头,这样你就可以在你学习ASP.NET的时候考虑一​​下。

看看你列出的步骤:

·身份验证是一个高级主题,除非你碰巧有其他编程经验语言(即便如此,它也可以是熊)。所以这就省去了创作和评论。

·搜索也是一个高级主题,假设你的意思是实现CodeProject或Bing之类的东西。



以下是剩下的内容概述 :(忽略身份验证和搜索)

??•最好的出发点是设计具有响应性的接口(Bootstrap等)它有一个标题,一个菜单选项的位置(可能在标题或左侧下方)和一个内容空间。 (如果您没有HTML经验,请忽略响应)

•除非您已经了解数据库,否则请编写您的博客文章并将其保存在文本文件中,将它们推送到服务器并获取它们在内容空间中显示(通过ASP.NET代码)。您将使用以下内容:
For a beginner in ASP.NET, creating a BLOG is probably too ambitious to be useful as a short term goal.
You can find any number of places that will teach you ASP.NET C# (or VB). Some, such as http://www.asp.net/get-started referenced below, are free. My current favorite happens to be PluralSight.com. Your learning style will determine if video or text based learning is better for you.
If what you want is a blog, then I'd suggest DNN (DotNetNuke) which is written in ASP.Net C# - if you make it available to the public, keep it patched!

Since you've asked for an outline, I'll give you the start of one so you can think about it as you are learning ASP.NET.
Looking at the steps you listed:
· Authentication is an advanced topic, unless you happen to have experience in another programming language (and even then it can be a bear). So that leaves out authoring and commenting.
· Search is also an advanced topic, assuming you mean to implement something like CodeProject or Bing.

Here's an outline of what's left: (ignores authentication and search)
• Your best starting point is to design your interface with something responsive (Bootstrap, etc.) that has a header, a place for menu options (probably under the header or left side) and a space for your content. (If you have no HTML experience, ignore "responsive")
• Unless you already know databases, write your blog article(s) and save them in a text file, push them to the server and get them displayed (via ASP.NET code) in the content space. You'll use something like:
StreamReader sr = new StreamReader("BlogText.txt")  { … } 

从文件中获取内容。

•一旦你能正确显示所有博客条目,添加仅显示一个博客条目的功能。

•当你可以这样做时,创建一种在它们之间前进/后退的方法。

•然后将它们放入数据库并执行相同的操作

•使用数据库,您可以获得更多功能。您可以跟踪发布日期和查看文章的次数

•一旦您开始工作,您可以执行上面的#1(显示最近发布的五个和查看次数最多的五个

那应该是一个好的开始。

一旦你完成所有这些,你就可以自己进步:-)



祝福!

-Chris C。

to get the content from the file.
• Once you can correctly display all of your blog entries, add functionality to display only a single one.
• When you can do that, create a way to move forward/backward between them.
• Then put them in a database and do the same thing
• With a database you have more functionality. You can track the publication date and the number of times that an article has been viewed
• Once you have that working you can do #1 above (display the five most recently published and the five most viewed
That should be a good start.
Once you've done all of that you'll be able to progress on your own :-)

Best wishes!
-Chris C.


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

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