Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Bailey Evans   on May 19 In Asp.net Category.

  
Question Answered By: Adali Fischer   on May 19

I would like to use an <asp:Repeater> tag to display a list of news
items. The News items are coming from a sql server  2005 database with:

ID (int) pk
Title (varchar)
Story (varchar)
PublishDate (datetime)
ExpireDate (datetime)
link (varchar)

I would like to display using template. I would however, put an <a
href> tag in between the <li> if the Link item isn't null. I would
also like to set  the css on the <li> table if the publish date is
today... I am really lost on this one though. Any links or insight
would be appreciated

<ul>
<li></li>
</ul>

Protected Sub IntronNewsItems_ItemCommand(ByVal source As Object,
ByVal e As System.Web.UI.WebControls.RepeaterCommandEventArgs) Handles
IntronNewsItems.ItemDataBound

'Do something

End Sub

Share: 

 

This Question has 15 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Repeater Control Or get search suggestion and latest updates.


Tagged: