Click here to Skip to main content
15,920,468 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi all,

There is a timesheet filling in my project after we filled those will be approved by TL's one week after one week.But now there requirement is all the weeks timesheet should display on single webpage and if we keep checkboxes they check the week by week timesheet and they approve at a time.please tell me how i need to do the change from one week to display all weeks.can i take monthwise and display all weeks is it possible or not.please help in giving some suggestions.

thanks in advance!
Posted
Comments
[no name] 29-Jun-11 7:50am    
When posting a question keep in mind that we are not sitting in the same cube or meetings as you. We have no idea about your requirements. Please restate your question with this in mind.
mandarapu 29-Jun-11 11:02am    
if you dont know answer leave it. what i posted is correct.

Perhaps the repeater control is what you are looking for. This article may help:
http://weblogs.asp.net/jgalloway/archive/2007/07/07/checkbox-grids-in-asp-net.aspx[^]

You can display all weeks, starting with non-approved weeks and sorted on date. But it's also possible to show non-approved weeks only (and the last four weeks or so).
 
Share this answer
 
Hi,
nested repeater approach could solve your problem.First find out weeks for a specified month as a List. Outer repeater will bind this list of weeks with a checkbox which will indicate whether TLs wants to approve time sheet or not, inner repeater will bind all the time sheets for that specific week. Now in event where approval happens iterate outer repeater and check whether that specific week is approved or not, if approved find the inner repeater and approve time sheet for that week, I hope this will help you to find a solution.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900