an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Development > General Programming > v3 Login Page issue handling ENTER button
Last Post 4/3/2010 4:21:11 AM By Applied. 3 replies.
3/31/2010 2:23:23 AM
Applied
Posts: 88
Joined: 9/18/2009
v3 Login Page issue handling ENTER button
Hi
 
When pressing ENTER on the login page for the second time after getting it wrong, you are presented instead with the 'search results' page.
 
FYI
 
This is because the 'default button' was only being set in the code-behind if not posting back.
 
I moved the lines involved so that they always run.
 

 

Control c = lgn1.FindControl("LoginButton");

Page.Form.DefaultButton = c.UniqueID;

 

3/31/2010 10:27:52 AM
lukezy
Posts: 2019
Joined: 6/12/2007
Location:WA, US
Re: v3 Login Page issue handling ENTER button
Thank you for sharing the solution.
DotShoppingCart Staff
4/1/2010 11:20:53 AM
Bahram
Posts: 851
Joined: 12/8/2008
Location:Vancouver, BC Canada
Re: v3 Login Page issue handling ENTER button
Does it means those lines should be commented?
4/3/2010 4:21:11 AM
Applied
Posts: 88
Joined: 9/18/2009
Re: v3 Login Page issue handling ENTER button
 No, just moved so they always execute...