473,413 Members | 1,993 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

Disabling the return key while within a dialog box

Hi,

I have an asp:hyerLink control followed by an asp:Login control. If I
inadvertently press the return key while within the login control... the
asp.net page will perform the hyperlink and branch out of the login control
dialog box. So, How can I disable the return key within the login box, or
any other remedy?

King

Oct 2 '08 #1
3 1220
PS: I also have button on the master.page with a similar page call like the
asp:HyperLink.

King

"King Coffee" <kc*****@hotmail.comwrote in message
news:92**********************************@microsof t.com...
Hi,

I have an asp:hyerLink control followed by an asp:Login control. If I
inadvertently press the return key while within the login control... the
asp.net page will perform the hyperlink and branch out of the login
control dialog box. So, How can I disable the return key within the login
box, or any other remedy?

King
Oct 2 '08 #2
Hello King,

What's you DefaultButton settings for login contol?! Seems that you have
this attribute set and that's why enter submit your form

---
WBR,
Michael Nemtsev [Microsoft MVP] :: blog: http://spaces.live.com/laflour
:: http://twitter.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
KCPS: I also have button on the master.page with a similar page call
KClike the asp:HyperLink.
KC>
KCKing
KC>
KC"King Coffee" <kc*****@hotmail.comwrote in message
KCnews:92**********************************@micros oft.com...
KC>
>Hi,

I have an asp:hyerLink control followed by an asp:Login control. If I
inadvertently press the return key while within the login control...
the asp.net page will perform the hyperlink and branch out of the
login control dialog box. So, How can I disable the return key within
the login box, or any other remedy?

King

Oct 2 '08 #3
Thank You, your comment helped a lot. I change the button on the master.page
to "usesubmitbehavoir" to false... and it stop executing that button when I
press the enter key.

Once again, Thanks,
King

"Michael Nemtsev [MVP]" <ne*****@msn.comwrote in message
news:90**************************@msnews.microsoft .com...
Hello King,

What's you DefaultButton settings for login contol?! Seems that you have
this attribute set and that's why enter submit your form

---
WBR, Michael Nemtsev [Microsoft MVP] :: blog:
http://spaces.live.com/laflour :: http://twitter.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

KCPS: I also have button on the master.page with a similar page call
KClike the asp:HyperLink.
KCKCKing
KCKC"King Coffee" <kc*****@hotmail.comwrote in message
KCnews:92**********************************@micros oft.com...
KC>
>>Hi,

I have an asp:hyerLink control followed by an asp:Login control. If I
inadvertently press the return key while within the login control...
the asp.net page will perform the hyperlink and branch out of the
login control dialog box. So, How can I disable the return key within
the login box, or any other remedy?

King

Oct 3 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Kyzer | last post by:
Hi all, I am writing a DLL which includes a function that may open a dialog. When this dialog is opened, an additional icon and program description is displayed in the Windows taskbar (similar...
4
by: Steve | last post by:
I have the MDI MFC application ported to .NET. Now this application include mixed managed/unmanaged code. The application displays progress dialog with the cancel button during lenghtly...
3
by: Earl Teigrob | last post by:
Can a Modal Dialog Box do forms ASP.NET forms validation from within the Modal Box? I want to pop up a dialog box to the user and have it do its own post backs with validation checking and then...
4
by: phil | last post by:
Is there an elegant way that I can return a value from a JavaScript function to ASP.NET? I want to have a popup confirmation dialog using JavaScript and only have a button control execute its ASP...
9
by: Ale K. | last post by:
What's the best way to make a form return a value.... i want to try to avoid using module variables for doing this... Thanks. Alex.
12
by: Nalaka | last post by:
Hi, I suddenly started getting a lot of errors from html validation (some CSS) so I followed the following instructions to disable it. If you'd rather not have these types of HTML validation...
5
by: alan75 | last post by:
Hi, I want to have custom dialog box to work like a messagebox, whereby if the custom dialog box is shown, the main form that calls it will still be visible but cannot be clicked or closed until...
5
by: Slawomir | last post by:
I'm a new in ASP.NET Word. Just finishing writing my first web application (CMS). It should be available anonymously for all users, but some part (admin) should be available only for some...
3
by: Jim Armstrong | last post by:
Hello all - This is driving me crazy. I have a table called tblClients - very simple, has the following fields: taxID (PK) ClientName SalesName The main form of my application allows a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.