Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

2-column list with break on change in value

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul S - 15 Feb 2008 16:53 GMT
Hi

I want to create a list as shown here

http://www.zartorv.com/default.asp?id=45

It's a 2-column list with item's sorted on a date value. When the data value
for the items break a header showing the new date is displayed.

How can I accomplish that ?

Is it possible add formatting to a row in the 2.column list ?

Thanks
Paul S
tian - 15 Feb 2008 17:36 GMT
Add a Repeater in your form.
User a AlternatingItemTemplate.
<Repeater>
<AlternatingItemTemplate>
<%#Eval("posttime")%>
</AlternatingItemTemplate>

<AlternatingItemTemplate>
<% GetTodayAlbum();%>
</AlternatingItemTemplate>
</Repeater>

posttime is an item in your data table and GetTodayAlbum() is a user-defined
function which can Write all information about the album today.That's not
easy.

A 2-column list is easy,you can use a Repeater, AlternatingItemTemplate can
fullfill this task.But can't print a datetime like the page given by you.

More about Repeater
http://msdn.microsoft.com/library/chs/default.asp?url=/library/chs/vbcon/html/vb
conintroductiontorepeaterwebcontrol.asp

> Hi
>
[quoted text clipped - 12 lines]
> Thanks
> Paul S

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.