PC Review


Reply
Thread Tools Rate Thread

default button in password recovery control

 
 
Keith G Hicks
Guest
Posts: n/a
 
      6th Mar 2008
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


 
Reply With Quote
 
 
 
 
Keith G Hicks
Guest
Posts: n/a
 
      7th Mar 2008
Well I tried this:
http://www.beansoftware.com/ASP.NET-...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


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
password recovery control Stephanie Microsoft ASP .NET 1 26th Nov 2008 03:15 AM
SMTP server for password recovery control John Microsoft ASP .NET 1 1st Jun 2008 06:16 PM
How to set a button from a user control the default button on an aspx page AlecL Microsoft ASP .NET 2 12th Feb 2007 09:15 PM
Harrassment Using the Password Recovery Control clintonG Microsoft C# .NET 4 20th May 2006 07:10 PM
Default password for recovery console? =?Utf-8?B?UGhpbGlw?= Windows XP Setup 3 1st Jun 2004 12:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:54 AM.