Link to home
Create AccountLog in
.NET Programming

.NET Programming

--

Questions

--

Followers

Top Experts

Avatar of OB1Canobie
OB1Canobie🇺🇸

Login Button Not Working
I have a simple login page that connects to a sql database to authenticate and allow users to login. I cannot get the login button to work for some reason. I have used this code many times now but all of a sudden it doesn't work. Can anyone assist? See files attached.
admin.aspx
admin.aspx.designer.vb
admin.aspx.vb

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of Paul SPaul S🇺🇸

is the connection string defined in the system config? What error message do you get?

Avatar of OB1CanobieOB1Canobie🇺🇸

ASKER

Yes, connection is in web config. I'm not getting any error. I place a break in the codebehind and debug is not even hitting the break when clicking the login button.

Avatar of himanshuthimanshut🇦🇺

Did you tried "Clean Solution" and "Rebuild All"?
sometimes .dlls get cached which can cause this problem.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of MoHaNvGoPaLMoHaNvGoPaL🇮🇳

Hi,

this is one bad thing I generally keep facing, not for login page, but generally with submit button.

The page dll get cached and will not work when IIS detects this cache is invalid.

all you need to do are

a) Clean history. if not possible to clean history, please do launch the application in another browser and then come back to IE.
b) reset your IIS. this will help your cache to not be loaded next time you access
c) Clean your solution. Make minor changes to the Login.aspx.vb file and then recompile.

Hope this helps.

ASKER CERTIFIED SOLUTION
Avatar of OB1CanobieOB1Canobie🇺🇸

ASKER

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of OB1CanobieOB1Canobie🇺🇸

ASKER

No answer assisted in solving the issue.
.NET Programming

.NET Programming

--

Questions

--

Followers

Top Experts

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.