I am creating a practice management system where I need to add a function where a clinic or hospital can add visitors to their clinics or hospitals. The following is the mu current interface.
Here, the clinic or hospital selects the day and time so that all selected days receive this time. Now I want to create a string in which the values will be stored as follows
Mon, Wed, Fri
10.00 - 2.00pm
I can execute the above line with this code
string selectedDays = string.Empty;
foreach (ListItem chk in daySelect.Items) {
if (chk.Selected == true) {
selectedDays += chk.Text + ",";
}
}
string vistingDays = string.Empty;
vistingDays = selectedDays + "<br />" + frmTime.SelectedValue.ToString + "-" + ToTime.SelectedValue.ToString;
, , .. , , . , 2 , , .
-
10:00 - 02:00
. , , , , .