473,406 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

timesheet in asp.net C#

parshupooja
159 100+
Hi

I am trying to create a timesheet for about 100 users. I want to display spmething like this

day date In Out In Out total

sat 01/10/2007 textboxes

sun 01/11/2007

----------so on for entire2 weeks

I am unable to figure out how should I display this and than update. I tried using this in page load but it display current date and day and text boxes for 14 times
Expand|Select|Wrap|Line Numbers
  1. protected void Page_Load(object sender, EventArgs e) 
  2. {
  3.  
  4. //build placeholder
  5.  
  6. for (int x = 0; x <= 14; x++) 
  7. {
  8.  
  9. Label day = new Label(); 
  10. day.ID = "day" + x.ToString();
  11.  
  12. Label title = new Label(); 
  13. title.ID = "Item " + x.ToString();
  14.  
  15. TextBox txt = new TextBox();txt.ID = "txt" + x.ToString(); 
  16.  
  17.  
  18. title.Text = DateTime.Now.Date.AddDays(1).ToShortDateString();
  19.  
  20. day.Text = DateTime.Now.DayOfWeek.ToString(); 
  21.  
  22.  
  23. Area1.Controls.Add(day);
  24.  
  25. Area1.Controls.Add(new LiteralControl(" ")); 
  26. Area1.Controls.Add(title);
  27.  
  28. Area1.Controls.Add(txt);
  29.  
  30. Area1.Controls.Add(new LiteralControl("<br>")); 
  31.  
  32. }
  33.  
  34.  
  35. plz help
  36.  
Sep 4 '07 #1
1 5174
Shashi Sadasivan
1,435 Expert 1GB
Wondered if you could fit the data in a gridview?
Sep 4 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: harsha mogaligundla | last post by:
Dear All , I am trying to develop a web based electronic Timesheet system for the payroll department using ASP and SQL server, the front end has fields like ssn,time -in , tim-out,regular...
2
by: christian | last post by:
I'm creating a Timesheet Database for the employees of my Department. One of my tables is called Fiscalpayperiod and contains: Paysunday, payweek, Date, Day. Pay Sunday Pay week Date Day...
3
by: christian | last post by:
HI, I'm creating a TimeSheet Database for the Employees of my Deparment. One of the Tables is called FiscalPayPeriod and contains the folllowing elements: PaySunday,PayWeek, Date, Day. Pay...
1
by: christian | last post by:
Can someone give an example of how to create a timesheet Database? I don't know how to start.
0
by: Sher | last post by:
I am trying to create a timesheet in access that have mutliple fields. Bi-weekly starting Sun - Sat Regular Regular + N/D Comp Time Earned Overtime Sunday Sunday + N/D Annual Leave Sick Leave
0
by: Redz | last post by:
About SocketTimesheet™ SocketTimeSheet is one of the most practical, affordable and user friendly web-based time tracking software and expenses management system in the market today - it's cheap,...
2
by: mgorelkin | last post by:
I'm new to MS Access, and was able to familiarize myself with the basics. I am, however, struggling with the following problem. I am trying to create a timesheet type form where the sheet contains...
1
by: mikelostcause | last post by:
I am writing a timesheet program for my office and I am trying to keep a portion of my code synchronous during shutdown (so that it registers the time a user shuts down the computer) , but...
1
by: LiveTecs | last post by:
http://www.livetecs.com TimeLive Web Collaboration Suite is an integrated suite that allows you to manage project life cycle including tasks, issues, bugs, timesheet, expense, attendance. ...
1
by: architrave | last post by:
I am building a timesheet for my work. Instead of record by record timesheet, I wanted to have a form with 15 unbound fields (pay period) distributed by dates along columns and different projects...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.