Hi, Im a beginner in C# coding..and currently im doing a project that requires me to create a webpage that allows people to book a time slot within a day.
I have a rough design of the page where people first choose the month and date from a dropdown list and it will lead them to a page where it will display all the available time slot of that day and the user can choose the time by selecting the checkbox.
Can anyone help me on starting this project?
Creating a Booking/Appointment webpage
Started by Choki, Sep 08 2008 07:43 PM
9 replies to this topic
#1
Posted 08 September 2008 - 07:43 PM
|
|
|
#2
Posted 09 September 2008 - 12:01 PM
You need to use ASP.NET if you're coding a webpage in C#. Try Visual Web Developer 2008 Express Edition for a good IDE.
#3
Posted 09 September 2008 - 09:29 PM
I do have visual studio and I'm currently trying to put the value of time slot from the database into the combo box. But I'm stuck at this part. How do i do this
#4
Posted 10 September 2008 - 02:13 AM
#5
Posted 11 September 2008 - 08:46 PM
Can anyone guide me on creating a dataset adapter?
#6
Posted 11 September 2008 - 09:19 PM
I have another question regarding database. Is it possible to update 1 table with values from another table? For example, the data stored in 1 table in a row needs to be updated manually with another data from another table. Do i use the sqldatasource or do i do manual coding?
And how do i go about linking 2 tables though foreign key and primary key?
thanks in advance
And how do i go about linking 2 tables though foreign key and primary key?
thanks in advance
#7
Posted 02 November 2008 - 11:47 PM
Hi, again. I have completed the calendar. But there has been a interesting topic that has been bothering me. Its how i could generate the labels to store the dates and time. Gaylo565 had helped me by showing me the following code(Thanks :) )
private void create1(int intDay)
for (int i = 0; i < 31; i++)
{
nextPiece = new System.Windows.Forms.Label[31];
nextPiece[i] = new Label();
nextPiece[i].Size = new Size(30, 30);
nextPiece[i].AutoSize = false;
int intToday = int Day;
nextPiece[0].Location = new Location ();
}
Is there other ways to achieve the same effect of the above code?
#8
Posted 03 November 2008 - 10:53 AM
Choki said:
private void create1(int intDay)
for (int i = 0; i < 31; i++)
{
nextPiece = new System.Windows.Forms.Label[31];
nextPiece[i] = new Label();
nextPiece[i].Size = new Size(30, 30);
nextPiece[i].AutoSize = false;
int intToday = int Day;
nextPiece[0].Location = new Location ();
}Hello there,
I don't have any idea about your problem but I have a question in your code!
Did this code really work for you?
int intToday = int Day; // ?????????????
nextPiece[0].Location = new Location(); /* What is Location()? Is it a class that returns Point? */
#9
Posted 09 November 2008 - 10:59 AM
Well i couldnt really figure out the codes he showed me...so i created my program in another way by using this
private void createLabel(string strDate)
{
for (int i = 0; i < 14; i++)
{
Label labelTime = new Label();
labelTime.Text = array[bookingTime].ToString();
labelTime.Height = 100;
labelTime.Width = 80;
labelTime.ID = strDate + i.ToString();
Panel1.Controls.Add(labelTime);
}
}
Though theres a minor question i have here. How do i enclose those labels in a border? As there is still a radio button for each time...i wanted to enclose both the label and the corresponding radiobutton in the same boundary. Any suggestion? Thanks in advance
#10
Posted 09 November 2008 - 09:42 PM
Another question... I tried creating radio buttons for each for label...But i wish to another element to the button in which only 1 of the button can be checked at any time
How can i do it?
RadioButton selectedButton = new RadioButton(); Panel1.Controls.Add(selectedButton);
How can i do it?


Sign In
Create Account

Back to top









