Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 4th, 2008, 10:22 PM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 231
Thanks: 0
Thanked 1 Time in 1 Post
Default archieve

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

      date sale purchase profit


                             Total

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



thanks......
__________________
thanks......
 
Old February 11th, 2008, 09:38 AM
Authorized User
 
Join Date: Jan 2007
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aliirfan84
Default

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.

Regards,
Ali Irfan





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





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