开发者

A way to do news bar

I need to do a news bar but I don't want to add another database query in the page which contains six queries, so I'm thi开发者_开发知识库nking about something like storing a one string param in txt file or maybe as a key in web.config and separate between each thread with a comma, and when I need to read these news I use the split() function to do the job.

Is this is a good practice or should I return to the usual DB query?


A query that fetches the news should not get too complex, so I would go for this instead of having to parse some arbitrary string.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜