Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 4th, 2008, 10:22 PM
Friend of Wrox
Join Date: Aug 2006
Location: Bangalore, Karnataka, India.
Posts: 231
Thanks: 0
Thanked 1 Time in 1 Post
Default archieve

i my application i have gridview which display daily report as:

      date sale purchase profit


this report if for one month only. after one month new grid will start.

My trouble is that after one month i need to provide a link as previous month on click a user can visit all previous month report.
i have two problems for it.
1) how to autogenerate link and
2) how to dispay report present in sqlserver 2000.

Please help

  #2 (permalink)  
Old February 11th, 2008, 09:38 AM
Authorized User
Join Date: Jan 2007
Location: Islamabad, Punjab, Pakistan.
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aliirfan84

Please follow this if I m not wrong:

1)Get sales Max and Min date(e.g. 12/12/2007, 12/12/2005)

2)Now loop through max to min on months and get distinct ones in array list (dictionary) having month, year as key and as value too except the current month.

3)Assign this array list to DDL or whatever control.

4)On selected index change(or any other event), make start and end date of value selected. For example, if u select 12,2007. then it should be 1/12/2007 - 31/12/2007.

5)Rest is soooo much easy.

IF any confusion ask freely.

Ali Irfan

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
better sol to archieve encryption and decryption shiby_chacko1@rediffmail. .NET Framework 2.0 1 February 10th, 2009 09:53 AM

All times are GMT -4. The time now is 02:53 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.