locked
access database RRS feed

  • Question

  • User417457257 posted

    Hi every one am try to make page for login for mobile device using VS.NET<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>

    And I insert two labels and two test box and command button and I write <o:p></o:p>

    <o:p> </o:p>

    This command <o:p></o:p>

    If username.test=”abc” & password =”123” then<o:p></o:p>

    Activeform= form1<o:p></o:p>

    Else <o:p></o:p>

    Avtiveform=form2 <o:p></o:p>

    End if <o:p></o:p>

    But when I test the code <o:p></o:p>

    If the username and password correct or wrong will take my to the same page form2  I don’t know whey ????<o:p></o:p>

    <o:p> </o:p>

    And the other thing that the code to change  ”abc” to username in access database what should I type and also the password <o:p></o:p>

    Notice I use multiform in my project   <o:p></o:p>

     
    Saturday, September 3, 2005 4:49 PM

All replies

  • User-1205307838 posted
    it should be AND not & (your code will always show form2 i guess)

    if username.text = "abc" And password.text="123" then....

    Saturday, September 3, 2005 9:40 PM
  • User417457257 posted

    ooh i see thanks man

    i will try it ok

    but what about the other question

    how i can cheak the username and password in database what the code for it e.g

     if username= " the username in the database" ??

     

    Sunday, September 4, 2005 4:53 AM
  • User-1205307838 posted
    Visit http://www.asp.net/tutorials/quickstart.aspx and read it :) - so you will know how to acces database and login user - there is a lot of very useful information there for someone who wants to start work with asp.net
    Sunday, September 4, 2005 11:49 AM