Results 1 to 6 of 6

Thread: how to verify info is true or false

  1. #1

    how to verify info is true or false

    Good people, my second post here as a newbie.

    Warning: this is a cheap question.

    How can check that the following code is returning True or False?

    If VERIFY_USER(Session("userName"), Session("userPassword")) = TrueThen
    Response.Redirect("default.aspx")
    Else
    Response.Redirect("Biz.aspx")
    EndIf

    Thanks much

  2. #2
    ummm. if it's true it will direct you to default.aspx, was that a trick question or something?


    member #1 of the "XML-is-a-crutch-to-make-people-feel-elite-club"
    K-Emmys-06: Best Quote K-Emmys-06: Flash Genious

  3. #3

  4. #4
    no, it isn't a trick question. I warned that it is a cheap question

    Actually, what I wanted to accomplish is this:

    default.aspx is the login page.
    Biz.aspx is the page I want to go to if login is successful.

    However, something appears to be wrong somwhere because if verify_user(..) is true, I get sent to login page instead of biz page.

    I did response.write and I was getting username/password.

    So, I thought there is another way of verifying that Verify_user(...) is true or false

    Again, sorry for the cheap question but it isn't a trick question, it is a silly question.

  5. #5


    You should use == instead off = in
    If VERIFY_USER(Session("userName"), Session("userPassword")) = True then

    sooooo == TRUE

    because if you do not VERIFY_USER(Session("userName"), Session("userPassword")) will get the value true and this will return nothing
    because it's not a function so probaly false

    good luck newbie..
    Last edited by borrob; January 31st, 2007 at 06:58 PM.

  6. #6

    are you saying...

    ...that the code should be:
    If VERIFY_USER(Session("userName"), Session("userPassword")) == TrueThen
    Response.Redirect("default.aspx")
    Else
    Response.Redirect("Biz.aspx")
    End If
    That can't be right!

    BTW: I am using VB, not C#

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012