Terranet Technologies  Welcome to TNet   Sign Up  Login 
           
HomeDevelopmentConsultingSolutionsUsersSupport
zip:
Weather in Tulsa, OK (74133)
Current Conditions:
Fair 79°F
Fair
Wind: CALM calm mph
SAT
9/4
Clear

L:55
SUN
9/5
Sunny
H:89
L:64
MON
9/6
Sunny / Wind
H:93
L:69
TUE
9/7
Scattered T-Storms
H:87
L:68

Last Update: 5:06:20 PM
weather.com

Services
ASP.Net
C#
VB
TSQL
   

Welcome to Terranet Technologies forum.  This is a private Web Service so it will require you to create a seperate account other than your Terranet account.   Please use your existing Terranet user name.  It will only require your email and a password to join.

Join | Logon
 All Threads | New ThreadView:  Search:  
 Author  Thread: on the login contol on a master page I need to set focus to the login button
codeking
Posts: 4
on the login contol on a master page I need to set focus to the login button
Posted: 27 Aug 07 3:37 PM
I am using a loginview so it is not finding the loginbutton using find control.
[Reply][Quote]
kroesch
Posts: 10
Re: on the login contol on a master page I need to set focus to the login button
Posted: 27 Aug 07 3:38 PM
OK,

Since you are using the loginview you need to do the following:

//The login view id is lvwLogin and the login id is Login2

System.Web.UI.WebControls.Login tmpLogin = (System.Web.UI.WebControls.Login)lvwLogin.FindControl("Login2");

Button loginbtn = (Button)tmpLogin.FindControl("LoginButton");

Page.Form.DefaultButton = loginbtn.UniqueID;

[Reply][Quote]
 Page 1 of 1 

Copyright© 1998 - 2010 Terranet Technologies LLC All rights reserved.