ASPxNewsControl 使用备忘

To bind the control to a data source, use its ASPxDataWebControl.DataSourceID property. To indicate the way the control's items are populated from the data source, use the following properties:

  • DateField - specifies the data source field which provides item dates;
  • HeaderTextField - specifies the data source field which provides a content to item headers;
  • ImageUrlField - specifies the data source field which provides the URLs of item images;
  • NavigateUrlField - specifies the data source field which provides item URLs;
  • TextField - specifies the data source field which contains item descriptions.

在NavigateUrilField 中设置一个编号,一般是指新闻的ID编号。
在NavigateUrlFormatString中设置show.aspx?bianhao={0},可以链接到制定的地方。
在ItemSettings中,设置ShowHeaderAsLink让标题出现链接,Target设置目标框架。

posted on 2007-10-02 13:58  c#之旅  阅读(739)  评论(1编辑  收藏  举报

导航