•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 391,671 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,017 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 7219 | Replies: 6
For some reason, when I am in the password text box, when I press enter, it simply clears both fields. Doesn't validate, doesn't login, just clears the fields. What is going on here?
Codebehind:
And the aspx page is attached. Please help.
Slade
Codebehind:
PrivateSub cmdLogin_ServerClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdLogin.ServerClick If FormsAuthentication.Authenticate(txtUser.Text, txtPass.Text) Then FormsAuthentication.RedirectFromLoginPage(txtUser.Text, chkPersist.Checked) Else lblStatus.Text = "Not Authenticated" IfCInt(ViewState("Tries")) > 1 Then Response.Redirect("Denied.aspx") Else ' Otherwise, increment number of tries. ViewState("Tries") = CInt(ViewState("Tries")) + 1 EndIf EndIf EndSub
And the aspx page is attached. Please help.
Slade
Formerly known as Slade.
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
.net .net framework 3.0 access ajax asp business code combo custom cyber-squatting data developer development dom domains dropdownlist feed microsoft module msdn net office pay-per-click reader reuse security skin software sql strider theme trademark typo-squatting vista weather web windows workflow xml xoap
- Passing value of string from one button click event to another (ASP.NET)
- how to set default focus on button in winform (C#)
Other Threads in the ASP.NET Forum
- Previous Thread: ASP.NET problem
- Next Thread: mod_rewrite in asp .net using vb



Threaded Mode