I have a web form that is a child of a Master Page. It is a login form for
forms authentication.
When you fill in the username and password box and press ENTER it doesnt
process any of the VB.NET code it sits there doing nothing.
I've tried some of the solutions on the internet but they don't work - I
think it might have something to do with the fact I'm using a Master Page...?
PLEASE HELP! This is driving me nuts!!
Andrew. 6 2485
Hi Andrew,
Welcome to ASPNET newsgroup.
From your description, one of your login page(ASP.NET2.0) which created
from a MasterPage didn't handle the login button's submit event correctly
,ye s?
Based on my understanding, when we enter "enter" key on a web page (at
lease in IE), the first submit button on the page will be clicked so as to
submit the page. So If you found the page's login code not execute
correctly, it must be the page didn't be submit correctly. Is it working
correctly if we manually click that submit button?
also, as you mentioned that you've tried applying some tips on the
internet, would please paste some of those code snippets so that we can
have a further investigate here?
Thanks,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Thanks for your message. I've created an 'Experts-Exchange' post for this and
I've pasted all the HTML and ASP.NET code into it ... if you take a look at
the following link I hope it will give you what you're after: http://www.experts-exchange.com/Web/....html#14271172
I've tried putting a invisible HTML textbox in the login page's code as per
a fix on a website, but i still get the same problem. If I CLICK the Submit
button it all works fine, it's just when I press the enter key when the focus
is in the password box does it NOT work.
The textboxes and submit button are all ASP controls running server-side (as
opposed to HTML controls)
Thanks in advance!!
Andrew.
""WenJun Zhang[msft]"" wrote: Hi Andrew,
Welcome to ASPNET newsgroup. From your description, one of your login page(ASP.NET2.0) which created from a MasterPage didn't handle the login button's submit event correctly ,ye s?
Based on my understanding, when we enter "enter" key on a web page (at lease in IE), the first submit button on the page will be clicked so as to submit the page. So If you found the page's login code not execute correctly, it must be the page didn't be submit correctly. Is it working correctly if we manually click that submit button? also, as you mentioned that you've tried applying some tips on the internet, would please paste some of those code snippets so that we can have a further investigate here?
Thanks,
Steven Cheng Microsoft Online Support
Get Secure! www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no rights.)
Thanks Andrew,
I'll follow the link you provided and have a look.
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Hi Andrew,
Seems I can't get the detailed code snippet from the http://www.experts-exchange.com/
Do I need to sign on that site? Anyway, I'd appreciate if you can paste the
code snippet here.
Thank you,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Hi,
I have the exact same issue when using one textbox in a form with a submit
button, mouse clicking the button causes proper postback and event handling,
but enter key looks like it does the postback but doesn't trigger events.
This also only seems to be an IE bug???
The only workaround/fudge I have that consistently works is NOT to use the
buttons OnClick event, but to call the handling method from the top of the
PreRender of the page, only when the page is in postback, i.e. (vb example)
Sub Page_PreRender(sender As Object, e As EventArgs)
If Page.IsPostBack() Then
' Call the login event handler this way rather than on an OnClick
' button event to get around IE bug with only one textbox in form
ProcessSubmit()
End If
...
End Sub
Sub ProcessSubmit()
'event handling code exactly as in btnButton_Click() handler
...
End Sub
Now this is really only viable if there is one form and one submit button on
the page, otherwise you'll end up with all sorts of extra problems :O)
Looking forward to any other comments on this issue.
Cheers
Chris
"Andrew Willett" <Andrew Wi*****@discussions.microsoft.com> wrote in message
news:11**********************************@microsof t.com... Thanks for your message. I've created an 'Experts-Exchange' post for this and I've pasted all the HTML and ASP.NET code into it ... if you take a look at the following link I hope it will give you what you're after:
http://www.experts-exchange.com/Web/....html#14271172
I've tried putting a invisible HTML textbox in the login page's code as per a fix on a website, but i still get the same problem. If I CLICK the Submit button it all works fine, it's just when I press the enter key when the focus is in the password box does it NOT work.
The textboxes and submit button are all ASP controls running server-side (as opposed to HTML controls)
Thanks in advance!! Andrew.
""WenJun Zhang[msft]"" wrote:
Hi Andrew,
Welcome to ASPNET newsgroup. From your description, one of your login page(ASP.NET2.0) which created from a MasterPage didn't handle the login button's submit event correctly ,ye s?
Based on my understanding, when we enter "enter" key on a web page (at lease in IE), the first submit button on the page will be clicked so as to submit the page. So If you found the page's login code not execute correctly, it must be the page didn't be submit correctly. Is it working correctly if we manually click that submit button? also, as you mentioned that you've tried applying some tips on the internet, would please paste some of those code snippets so that we can have a further investigate here?
Thanks,
Steven Cheng Microsoft Online Support
Get Secure! www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no rights.)
Don't forget to add "Handles MyBase.PreRender" to "Sub Page_PreRender(sender
As Object, e As EventArgs)"
"Chris Gill" <ch********@clever4.net> wrote in message
news:uH********************@karoo.co.uk... Hi,
I have the exact same issue when using one textbox in a form with a submit button, mouse clicking the button causes proper postback and event
handling, but enter key looks like it does the postback but doesn't trigger events. This also only seems to be an IE bug???
The only workaround/fudge I have that consistently works is NOT to use the buttons OnClick event, but to call the handling method from the top of the PreRender of the page, only when the page is in postback, i.e. (vb
example) Sub Page_PreRender(sender As Object, e As EventArgs) If Page.IsPostBack() Then ' Call the login event handler this way rather than on an OnClick ' button event to get around IE bug with only one textbox in form ProcessSubmit() End If ... End Sub
Sub ProcessSubmit() 'event handling code exactly as in btnButton_Click() handler ... End Sub
Now this is really only viable if there is one form and one submit button
on the page, otherwise you'll end up with all sorts of extra problems :O)
Looking forward to any other comments on this issue.
Cheers
Chris
"Andrew Willett" <Andrew Wi*****@discussions.microsoft.com> wrote in
message news:11**********************************@microsof t.com... Thanks for your message. I've created an 'Experts-Exchange' post for
this and I've pasted all the HTML and ASP.NET code into it ... if you take a look at the following link I hope it will give you what you're after:
http://www.experts-exchange.com/Web/....html#14271172 I've tried putting a invisible HTML textbox in the login page's code as per a fix on a website, but i still get the same problem. If I CLICK the Submit button it all works fine, it's just when I press the enter key when the focus is in the password box does it NOT work.
The textboxes and submit button are all ASP controls running server-side (as opposed to HTML controls)
Thanks in advance!! Andrew.
""WenJun Zhang[msft]"" wrote:
Hi Andrew,
Welcome to ASPNET newsgroup. From your description, one of your login page(ASP.NET2.0) which created from a MasterPage didn't handle the login button's submit event
correctly ,ye s?
Based on my understanding, when we enter "enter" key on a web page (at lease in IE), the first submit button on the page will be clicked so as to submit the page. So If you found the page's login code not execute correctly, it must be the page didn't be submit correctly. Is it
working correctly if we manually click that submit button? also, as you mentioned that you've tried applying some tips on the internet, would please paste some of those code snippets so that we can have a further investigate here?
Thanks,
Steven Cheng Microsoft Online Support
Get Secure! www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no rights.)
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Robert Dickow |
last post by:
I have some ASP.NET Web App pages on which there are web forms with
textboxes and buttons for 'Cancel' and 'Submit' and such. All works great.
However, it a user uses the ENTER key in either of two...
|
by: Phillip Kennedy |
last post by:
Hi,
HELP!!!! we are having a problem where we have a web page
with a number of buttons and form fields, unfortunately
whenevr we hit the enter key in a form field it is
envokingthe 1st button,...
|
by: Cindy |
last post by:
Hi all you smarties out there,
I'm having a little conundrum with my asp.net page
Scenario:
I have a form (asp.net) with no code behind (as yet).
I have placed a javascript function on a...
|
by: Tony Hedge |
last post by:
Hello,
I can briefly explain without providing any code, it's a simple NET 1.1 web
project.
I have a web form with a textbox A and button A (in a table row), and
textbox B and button B (in a...
|
by: guoqi zheng |
last post by:
In a regular html form, when user press "enter" key, the form will be
submitted.
However, in ASP.NET web form, a form will only be submitted (post back) when
a special button is clicked. Many...
|
by: peshrad |
last post by:
Hi !
I'm working with Win 2K and Visual Studio 2003.
I have a problem because pressing <ENTER> in a text input control causes a
postback of my web form.
Here comes some example code (already...
|
by: Joe |
last post by:
Hello All,
I have an ASP.NET page with one Textbox (SearchTextBox) and one ImageButton
(SearchButton) server controls. The user can type search text in
SearchTextBox and click SearchButton and...
|
by: joe |
last post by:
How to disable imagebutton postback when i enter "enter"
i just want postback when click mouse
|
by: =?Utf-8?B?SnVsaWEgQg==?= |
last post by:
Hi all
I've got a very complex form with loads of text boxes and buttons on it.
It's causing me all sorts of problems when users press the enter key and
cause a postback.
I need to disable...
|
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...
|
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: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
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
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
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...
|
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...
| |