I have found a situation where the DefaultButton and DefaultFocus stop
working under FireFox. I'm looking for any kind of fix or work around.
The problem seems to happen when setting a control that is part of another
control, like a templated control. The docs say to use the UniqueID in this
case. In the example below I am trying to set controls in the Login
control's LayoutTemplate.
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Page.Form.DefaultButton = login.FindControl("Login").UniqueID;
Page.Form.DefaultFocus = login.FindControl("UserName").UniqueID;
}
}
This code works fine for IE but not for FireFox. The same teqnique seems to
work fine for FireFox if the control is not part of a templated control like
just a TextBox control on the page. This may be because the UniqueID is just
the controls ID. I wonder if this fails in the MasterPage scenario.
Thanks for any help,
Tyler
--
------------------
Tyler Carver
tylercarver.com