Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UserLogin.aspx with MasterPage javascript error
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01298041
Message ID:
01300614
Views:
12
E.R.

>When you add a Master Page to UserLogin.aspx the javascript created by setting this.FocusedControl doesn't work. Is that because the control is now in a ContentPlaceholder? Is there a way to get this to work correctly?

Try using one of these approaches as discussed in the MM .NET Dev Guide topic "Setting Initial Control Focus on a Web Form":
this.SetFocus(this.Button1)
this.Button1.Focus()
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform