Jump to content

Creating a Booking/Appointment webpage

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
9 replies to this topic

#1
Choki

Choki

    Newbie

  • Members
  • Pip
  • 8 posts
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?

#2
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
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.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#3
Choki

Choki

    Newbie

  • Members
  • Pip
  • 8 posts
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
dipper07

dipper07

    Newbie

  • Members
  • Pip
  • 3 posts
hmnn let me check your problem...!!

#5
Choki

Choki

    Newbie

  • Members
  • Pip
  • 8 posts
Can anyone guide me on creating a dataset adapter?

#6
Choki

Choki

    Newbie

  • Members
  • Pip
  • 8 posts
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

#7
Choki

Choki

    Newbie

  • Members
  • Pip
  • 8 posts
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
pb_ce85

pb_ce85

    Newbie

  • Members
  • PipPip
  • 21 posts

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
Choki

Choki

    Newbie

  • Members
  • Pip
  • 8 posts
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
Choki

Choki

    Newbie

  • Members
  • Pip
  • 8 posts
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

RadioButton selectedButton = new RadioButton();

Panel1.Controls.Add(selectedButton);

How can i do it?