How do i write "if else" statement using both dropdownlist and will display the result on a textBox? This is half part code of saveButton
err_no = db.ExecuteInsert("INSERT INTO EFolder (No, working, exp, points) VALUES("'" & db.sqlstr(txtworking.SelectedValue),
"'" & db.sqlstr(txtexpe.SelectedValue),
"'" & db.sqlstr(txtpoints.Text),
Session("CnnStr").ToString)
here im trying do write the if else statement
Protected Function Mix() As Long
Dim working As Boolean
Dim exp As String
working = txtworking.SelectedValue
exp = txtexp.SelectedValue
If (txtworking.SelectedValue.text) = "Y" and (txtexp.SelectedValue.Text) = 1
Then
txtpoints.Text = "5"
End If
End Function
Aucun commentaire:
Enregistrer un commentaire