Adding attributes

btisdabomb

Member
Joined
Jul 12, 2006
Messages
16
Programming Experience
Beginner
I am adding attributes to some textboxes during runtime using this code...

txtOrgName.Attributes.Add("onfocus", "Remove();")
txtOrgName.Attributes.Add("onblur", "Add();")
txtOrgName.Attributes.Add("onkeydown", "KeyDownHandler(btnFindOrg);")
txtOrgName.Attributes.Add("oninput", "markFormDirty();")

The first 2 attributes don't seem to be working, but the second 2 do. Is there a limit to the number of attributes I can add to a certain textbox or other objects? Are there any other reasons this may not work?
 
Back
Top