For loop with if else statement<resolved>
i wan the page to jump to another page if the statement is not true...
Dim i As Integer
For i = 0 To ds.Tables(0).Rows.Count - 1
If id = ds.Tables(0).Rows(i)(0) Then
name.Text = ds.Tables(0).Rows(i)(1)
gender.Text = ds.Tables(0).Rows(i)(1)
dob.Text = ds.Tables(0).Rows(i)(1)
mail.Text = ds.Tables(0).Rows(i)(1)
label2.Text = ds.Tables(0).Rows(i)(1)
ELSE
End If
Next
where should i put my respon.redirect?
if i put after the else it will go straight to the page after one loop...
how?
can any help???
:( :( :confused: :confused: