473,327 Members | 2,025 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,327 software developers and data experts.

return keys being clicked

JJ
I have a createuserwizard control on my web form. When the user registration
fields are filled out correctly, and the user then presses the return key
instead of clicking the 'create user' button, the browser seems to default
to the first asp control on the web page instead of having the same effect
as clicking the create user button.

In my case the first asp control on the page is the login button, so they
end up at the login page instead of completing their registration.

I cannot set the 'default button' of the 'asp form', because the 'form' is
actually on the masterpage, so the 'default' button would change on each
page.

Is there either a way of making the default button different for each page,
or, if I have to, disabling the RETURN and ENTER keys altogether?

JJ

Sep 13 '06 #1
1 1296
JJ
Ok so maybe I'm closed to a solution:

I understand that you can set the default button of the masterpage by:
Protected Sub Page_Load _
(ByVal sender As Object, _
ByVal e As System.EventArgs)
Page.Master.Page.Form.DefaultButton = _
Button2.UniqueID
End Sub
However, that brings up two issues:
1. what is the 'createuser' buttons ID (and its UniqueID?
2. what happens when you move to the next step in the wizard, and the button
changes?

Anyone reading this ?

JJ

"JJ" <ab*@xyz.comwrote in message
news:ez**************@TK2MSFTNGP02.phx.gbl...
>I have a createuserwizard control on my web form. When the user
registration fields are filled out correctly, and the user then presses the
return key instead of clicking the 'create user' button, the browser seems
to default to the first asp control on the web page instead of having the
same effect as clicking the create user button.

In my case the first asp control on the page is the login button, so they
end up at the login page instead of completing their registration.

I cannot set the 'default button' of the 'asp form', because the 'form' is
actually on the masterpage, so the 'default' button would change on each
page.

Is there either a way of making the default button different for each
page, or, if I have to, disabling the RETURN and ENTER keys altogether?

JJ

Sep 13 '06 #2

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

Similar topics

1
by: Dino Buljubasic | last post by:
Hi, Can somebody help me with this problem please. I need to get the value, not just to check for it, of a number pressed but it has to work for both, numbers above QUERTY and numbers entered...
11
by: ankyhe | last post by:
L = L=L.sort() L will refer to None, why L.sort() don't return the L? I want to ask why the designer of Python do so?
2
by: _DD | last post by:
I'm trying to gracefully intercept Control and Alt keys for mouse events within a Panel. I realize that keyboard is not normally relevant there, but in this case, I need to get...
14
by: vatamane | last post by:
This has been bothering me for a while. Just want to find out if it just me or perhaps others have thought of this too: Why shouldn't the keyset of a dictionary be represented as a set instead of a...
2
by: senfo | last post by:
Hello all, To help alleviate human error, I'm developing an application that uses a barcode reader to fill in a value in a TextBox control. The barcode reader is connected to the PC through the...
1
by: =?Utf-8?B?bWF4ZG9nMzAx?= | last post by:
XP home SP2. when I tried to reload software i am getting a error. went to the registry and tried to remove the key. get the 'error opening key'. most keys open some don't. right clicked went to...
2
by: Adam Sandler | last post by:
Hello, Is it possible to assign a function key to a toolstripbutton? I don't see the property for such an action in the properties for the tsButton. I have a "new" button on the toolstrip. ...
16
by: ImpactMan | last post by:
Need help to create an windows mobile application with a few buttons that when they are pressed/clicked they assign keys, like up, down, left, right. It is just like to create a "virtual d-pad",...
6
by: mbewers1 | last post by:
I've never handled keysroke events before and I would like to implement a Return keystroke event in a Windows form to bring up a list of items in a datagrid as well as habing a search button in the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.