data representation of months in a web page

This is a discussion on "data representation of months in a web page" within the ASP.NET Forum section. This forum, and the thread "data representation of months in a web page are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > ASP.NET Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Apr 26th, 2006, 10:32
New Member
Join Date: Dec 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
data representation of months in a web page

Dear all,

I wish to do a display on a web page something of this sort:-

Month Name
Date Title 1 Title 2 Price
Entry1
Entry2
Entry3

Month Name2
Date Title 1 Title 2 Price
Entry4
Entry5
Entry6

Month Name3
Date Title 1 Title 2 Price
Entry7
Entry8
Entry9

My idea is to create multiple dynamic datagrids and bind them to the data retreived for that particular month.

However i was wondering if there is a shorter work-around for this representation

Thanks for your help

Johann
Reply With Quote

  #2 (permalink)  
Old Jul 18th, 2006, 17:35
Junior Member
Join Date: Jul 2006
Location: Manchester
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Re: data representation of months in a web page

I think what you need is a nested data repeater / data grid bound to a dataset or datareader.

you would have to handle the nested repeater databinding manually within the itemdatabound event.
Reply With Quote
  #3 (permalink)  
Old Aug 14th, 2006, 07:37
Reputable Member
Join Date: Jul 2006
Location: Scotland
Age: 22
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to snow
Re: data representation of months in a web page

The best way I've found to get month names in ASP.net is by using:

Code: Select all
 
dim dtfi as System.Globalization.DateTimeFormatInfo = new System.Globalization.DateTimeFormatInfo
monthName = dtfi.getMonthName(monthNo)
So, then if monthNo was '03', then monthName would be March.


If you're getting the full date from a datasource, and I'm assuming you need to extract it from an an msSQL database, you'd need the query:

Code: Select all
SELECT DATEPART(mm,monthField) as theMonth


I made some very large assumptions when writing this - but I hope you can get something useful out of it!

Good luck,
Snow
Reply With Quote
Reply

Tags
data, representation, months, web, page

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
send data from php page to jsp page ktsirig PHP Forum 2 May 2nd, 2008 13:00
Data collection and graphical representation chrisse Starting Out 1 Aug 31st, 2007 14:10
anyone have this months Advanced Photoshop Magazine Voodoochilli Webforumz Cafe 8 Jul 2nd, 2007 15:21
Code for button to refresh page after inserting data in sql db wacara JavaScript Forum 0 Apr 27th, 2007 02:45


All times are GMT. The time now is 06:28.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43