How to set focus to dynamically generated listbox
Hi,
What i want to achieve is that after the page is loaded , the focus should be set on the list box which is generated dynamically.
I tried doing it by setting the focus on page load event in the <body onload=frmAg.lstGroups.focus>
where frmAg is the form name and lstGroups is the listbox name but it generates error that the control was not found.
can someone suggest me how to achieve this in the page load.
a code snippet would be greatly appreciated
--King
|