在asp.net中为博客创建页面 [英] To Create Page for Blogs in asp.net

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

问题描述

亲爱的朋友



我想为博客写作作为网站管理员生成分页功能,以便在第一页上发布4个博客,然后他们随后发布发布在其他页面上。

我的网站是在Asp.net。我们如何在不使用数据库但只使用文件的情况下实现这一目标



如果有人可以提供帮助吗?提前致谢。



Akhilesh Pathak

Dear Friends

I want to generate a paging functionality for Blog Writing as an Admin of site such that 4 blogs are posted on the first page and then subsequently they are posted on other pages.
My site is in Asp.net. How can we achieve this without using database but only files

If any one can help?Thanks in advance.

Akhilesh Pathak

推荐答案

我认为,在不使用数据库的情况下尝试这样做将非常困难。



我能想到的唯一方法是用数字后缀(0001,0002等)命名每个文件



然后你必须加载一次四个文件(1-4,5-8等)并连接它们以输出html。



您需要扫描保存的目录文件找到编号最大的文件,以确定第一页上的内容。



使用数据库 - 它更容易!
Trying to do this without using a database will be very difficult, I think.

The only way I can think of would be to name each file with a numeric suffix (0001, 0002 etc.)

You would then have to load four files at a time (1-4, 5-8 and so on) and concatenate them to output the html.

You would need to scan the directory holding the files to find the highest numbered file to determine what goes on the first page.

Use a database - it''s much easier!

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

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