Home > front end >  For help! Nasty... In VS login page design in the password, the user name the same as in the databas
For help! Nasty... In VS login page design in the password, the user name the same as in the databas

Time:09-16

VS design in the login page of your user name and password the same as in the database why always tip password mistake

CodePudding user response:

Debugging see you pass parameters right prompt you password inaccurate debugging to see your password value

CodePudding user response:

Tracking the re. The tostring (). Why does not equal textbox2 text

CodePudding user response:

reference 1st floor usecf response:
debugging see you pass parameters right prompt you password inaccurate debugging to see your password by value

I use this for the first time, don't know how to debug, for help

CodePudding user response:

refer to the second floor 姎 jacaranda response:
tracking the re. The tostring (). Why does not equal textbox2 text

This how to set the trace

CodePudding user response:

reference 4 floor weixin_44785428 response:
Quote: refer to the second floor 姎 jacaranda response:
tracking the re. The tostring (). Why does not equal textbox2 text

This how to set the trace ah

Have been debug, found that the value of the re is equal to the value set in the database

CodePudding user response:

Quote: refer to the fifth floor weixin_44785428 reply:

You are debugging now that you have, you will see a re the tostring () and textbox2. The text, enter the password on principle right should be equal and then go else If method, do you have a password lost value

CodePudding user response:

Lost already, and every time lost password, debugging results are also different

CodePudding user response:

Also may be other reasons?

CodePudding user response:

Mycms. The Parameters. The Add (" name "... ?
Mycms. The Parameters. The Add (" @ the name "...

CodePudding user response:

refer to the third floor, 9/f, ichiro response:
mycms. The Parameters. The Add (" name "... ?
Mycms. The Parameters. The Add (" @ the name "...

I also tried this didn't affect the

CodePudding user response:

Do you want to use the equals or compare should not be compared directly with the string comparison method

CodePudding user response:

Space carriage returns TAB, and so on, check for these invisible characters, two string length is the same, seeing how Byte array comparative difference

CodePudding user response:

If it is to use id? Xx incoming is not in Session to obtain in the Request QuerString access then click on the button WebFrom come in through the Request From (" X ")

CodePudding user response:

Brother, you want to use the equals or compare the string comparison method should not be compared directly with the==,

CodePudding user response:

Brother, I have not tried

CodePudding user response:

The
reference 13 floor call me officer person, response:
if it is to use id? Xx incoming is not in Session to obtain in the Request QuerString access then click on the button WebFrom come in through the Request From [" X "] get

ID set identifier field, which can be the default values

CodePudding user response:

Even is a library

CodePudding user response:

Read the database data displayed, artificial matching .

CodePudding user response:

First check the database first if there is a blank space, it is suggested that more ago, leading and trailing Spaces removed

CodePudding user response:

There is no space

CodePudding user response:

The
cited the 17th floor CXYliukai reply:
even is a library?

Yes, because add user information can be found in the data table

CodePudding user response:

Re. The tostring () and textbox2. Text values are the same? Is there a blank space?
Debugging a look,

CodePudding user response:

Try to use the code to insert a user name and password, and then use the user name and password login, look at the success,
If successful, the database should be your before the data format is wrong,

CodePudding user response:

reference 23 f xdayong response:
try to use the code to insert a user name and password, and then use the user name and password login, look at the success,
If successful, it should be your database before the wrong data format,

Thank you, everybody, have been solved, I use a panel control to do it again, realized, should be the page itself
  •  Tags:  
  • ASP
  • Related