Results 1 to 5 of 5

Thread: For loop with if else statement<resolved>

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2003
    Posts
    38

    Question 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???
    Last edited by nikverse; Apr 7th, 2003 at 01:39 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width