loControlTextboxUsername.Attributes.Add("onkeypress", "return FormLoginFromInput(event)")However, on Mozilla Firefox, the attribute does not get added. So, this means .NET is smart enough to detect the browser and ignore that line. Or, is there something I am missing?