Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

default button in password recovery control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Keith G Hicks - 06 Mar 2008 19:34 GMT
asp.net 2.0

I have an asp:Login control and an asp:PasswordRecovery control on the same
page. The login control is above the recovery one.

When I open the page, I'm setting the focus to the login control. I type in
my user name and password and hit ENTER and it logs me in. That's fine.

When I open the page and tab (or mouse) to the UserName box in the
PasswordRecovery control and hit ENTER, the button in the Login control
fires but want the one on the PasswordRecovery  to be activated instead.

I tried to put them each in an update panel but that didn't solve the
problem. How can I solve this?

Thanks,

Keith
Keith G Hicks - 07 Mar 2008 18:48 GMT
Well I tried this:
http://www.beansoftware.com/ASP.NET-Tutorials/Accept-Enter-Key.aspx

But I get this error:

The DefaultButton of 'PwdRecoveryPanel' must be the ID of a control of type
IButtonControl.

password recovery control in an asp panel as follows:

<asp:Panel id="PwdRecoveryPanel" runat="server"
DefaultButton="SubmitButton">

SubmitButton is the ID of the button in the recovery control. The recovery
control's ID is PasswordRecovery1. Funny thing is that I cannot even refer
to that button in my vb code. It doesn't come up in intellisense. I'm
wondering if that's the problem.

I tried this too and it didn't work:

<asp:Panel id="PwdRecoveryPanel" runat="server"
DefaultButton="PasswordRecovery1.SubmitButton">

Keith

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.