1

我有一个几乎完整的asp.net 站点。

我有注册和登录的能力。

我想添加一个页面,注册成员可以在其中发表评论,该评论保存到一个非常简单的留言板(可能是留言簿类型的东西)。

我该怎么做...使用gridview / listview是个好主意吗?

我创建了一个用于将消息保存到数据库的表。我基本上有以下领域:

MessageId (PK)、UserID (FK)、评论、日期

实现这一点有多难?我走在正确的道路上吗?

提前致谢,

杰森

4

1 回答 1

0

Many options.

I would consider the listview -- it is by far the most flexible and powerful. You can have it render tables, divs, lists, or whatever you like. Much more flexible / easy to style and layout. And if you ever decide to make your comment list more interactive (such as collecting reactions to comments, rating, or whatever), I think it will be a lot easier to modify layout than some of the other controls.

MSDN magazine made a case for it a few years ago -- http://msdn.microsoft.com/en-us/magazine/cc337898.aspx.

Also, here is the MSDN on it -- http://msdn.microsoft.com/en-us/library/bb398790.aspx

于 2011-08-20T23:06:18.493 回答