PC Review


Reply
Thread Tools Rate Thread

Dynamic Control Creation in C#

 
 
Matt
Guest
Posts: n/a
 
      24th Apr 2007
Hi all,

I'm trying to write a program that works as a shift log. At the
moment, we have a piece of paper that has a number of items on it as a
check list and I want to create a similar thing.

My database looks like the following:

TABLE: Tasks
taskId
taskDescription
taskDueTime
taskAddedBy
taskAddedDate

TABLE: logs
logId
logDate
logStartedBy

TABLE: events
eventId
logId
eventCompletedTime
eventCompletedBy
eventComments

What I want the UI to look like is this:

---------------------------------------------------------------------------------------------------------
| <taskDescription> | <taskDueTime> | [ complete
task ] |
---------------------------------------------------------------------------------------------------------

Basically, I want the code to loop through the tasks, create the
controls above and then when the [ complete task ] button is pressed,
add the required data to the events table. I can get the currently
logged in user and the time the task was completed without any issues,
but I'm struggling to generate the UI as the number of tasks will
change and I don't want to have to re-code the UI everytime I add a
task!

I can do it in PHP, but we don't use that here, so if anyone can
help, that would be great!

Cheers,

M.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dynamic control creation Nathan Franklin Microsoft Dot NET Compact Framework 2 12th Nov 2005 02:43 AM
How to: Dynamic Control Creation: ASP.NET / C# =?Utf-8?B?Y2hhcmxpZXdlc3Q=?= Microsoft C# .NET 2 5th Dec 2004 02:15 AM
dynamic control creation e-mid Microsoft Dot NET Framework Forms 14 26th Jun 2004 11:24 AM
dynamic control creation e-mid Microsoft C# .NET 14 26th Jun 2004 11:24 AM
Dynamic control creation. Please help... =?Utf-8?B?SmltIE1hY2U=?= Microsoft ASP .NET 2 14th Mar 2004 05:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:16 PM.