Form Authentication

  • Thread starter Thread starter Miguel Dias Moura
  • Start date Start date
M

Miguel Dias Moura

Hi,

1. I have a group of check boxes and i want to force the user to click at
least one. If none is checked i want a message to be displayed.

2. I have 3 Drop Down Lists and 2 Input Boxes. I want to display a message
everytime all 3 Drop Down Boxes have the value "- - - " and the Input Boxes
are empty. This way i am forcing the user to make, at least, a selection or
fill one of the input boxes.

Can you tell me how to do this?
I am using ASP.Net / VB.

Thank You,
Miguel
 
Select Case True
Case txtFaxsID.Text = ""
MessageBox.Show("Error Please Notify Simon")
Exit Sub
Case txtFaxsNumber.Text = ""
MessageBox.Show("Error: Please enter a value for Fax Number")
Exit Sub
Case txtFaxsSerial.Text = ""
MessageBox.Show("Error: Please enter a value for Serial")
Exit Sub
Case txtFaxsMake.Text = ""
MessageBox.Show("Error: Please enter a value for Make")
Exit Sub
Case txtFaxsModel.Text = ""
MessageBox.Show("Error: Please enter a value for Model")
Exit Sub
Case cboFaxsSite.SelectedIndex = -1
MessageBox.Show("Error: Please select a Site")
Exit Sub
Case cboFaxsDepartment.SelectedIndex = -1
MessageBox.Show("Error: Please select a Department")
Exit Sub
End Select

HTH
MCN
 
Back
Top