473,395 Members | 1,468 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,395 software developers and data experts.

Login Control LayoutTemplate Enter Key Event

I'm using the Layout Template for the Login Control. I've included all the
neccessary controls on the page and everything is working nicely except
hitting the enter key on any of the textboxes will not fire the login event.
This functionality is included if I am not using the Layout Template. Do I
need to add custom code to add this event back in? Any ideas on how I might
do that?

Thanks,
Tyler Carver
Feb 6 '06 #1
1 2463
Hi Tyler,

Welcome to the ASPNET newsgroup.

As for the ASP.NET 2.0 Login Control, if you're using layout Template, then
all the html content and clientside script behavior need to be defined by
ourselve. And for the "enter key"/default button function you mentioned,
generally we can add some client script code for any textboxes in the
template, the code is attached to the textboxes' onkeydown event and will
locate the submit button and invoke its click method. Here are some web
article discussing on registering such client script for textbox to submit
form, you can reference some code there in your Login control's template:

#Enter Key in ASP.NET - Complete Research
http://www.beansoftware.com/ASP.NET-...Enter-Key.aspx

#Using the enter key to submit a form
http://www.allasp.net/enterkey.aspx

Hope this helps.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Feb 7 '06 #2

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

Similar topics

7
by: Grant Merwitz | last post by:
Hi I am trying to get the enter key to submit my login form The login form is currently in a control on the page and uses an asp:imagebutton as it's login button. If a user presses enter...
3
by: Jon Paal | last post by:
using VWD and asp.net 2.0 how do I enable clientside validation in ligin control ? Following code does not produce popup alerts or red asterisks . ==================== <div id="content">...
1
by: Hardy Wang | last post by:
Hi all, I have a login control, like below <asp:Login ID="loginPanel" runat="server" BorderPadding="0" PasswordRecoveryText="Click to retrieve your password" TitleText="Enter Your Username &...
0
by: John | last post by:
Hi I am using a login in template mode as I have customised it. I have added an image as a 'New User' button using the following code; <a class="button" href="Default2.aspx"> <asp:Image...
4
by: sowencheung | last post by:
Hi, all The scenario is like this: I have a master page, contains two user controls, one is a search control, another is a login control. The server-side <form> is in the master page,...
1
by: pj | last post by:
I'm trying to redirect users to another page after they Authenticate with the ASP.NET login controls. The user is able to login, but I can't get the response.redirect to work. Can anyone help? ...
0
by: JL | last post by:
I am implementing a login page using ASP.NET 2.0 Login control. I'd like user use their email as user name, I have implemented my own Authenticate even handler, but I get a "LayoutTemplate does not...
0
by: jobs | last post by:
This code works at setting my login failure message, but does not set the color for some reason. Protected Overrides Sub OnLoad(ByVal e As EventArgs) If IsPostBack Then If Login.FailureText <""...
4
by: Brian Gaze | last post by:
I have created a ListView control and have bound this to a datasource. Within the ItemTemplate of the ListView I have added another ListViewControl which is databound in the code behind. The idea...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...

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.