[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 254
  • Last Modified:

login control wont work correctly with masterpage

Hello,  I have a login control that will not work properly when the login page is displayed in the master page. It works correctly if not using a master page. It will authenticate if the login button is manually clicked but does not work if the keyboard enter button is pressed. It is like it cannot recieve focus.

Any ideas why?
0
gogetsome
Asked:
gogetsome
  • 2
1 Solution
 
gogetsomeAuthor Commented:
Ok, so I had a image button on the master page that was displaying the sites logo. This was recieving focus and causing a postback to the default.aspx and not completing the login process.
0
 
spdudeCommented:
Hi gogetsome

If that to dint work and if you want to set the focus explicitly.
Then asp.net 2.0 provides new focus method

So you can also try this.login1.focus() in page load method

Good luck
snehal
0
 
gogetsomeAuthor Commented:
Thanks spdude your solution did the trick.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now