I am working on SharePoint Application pages. I have a SharePoint DropDownChoiceField control on the aspx page. The requirement is to auto populate this control at the time of page load.
- Is there a way to call a JavaScript function at any of the events say "onload"?
I am also unable to find this control on the code behind page.
SharePoint:DropDownChoiceField FieldName="DropDownOptions" ID="ListValue" runat="server">
Thanks
_spBodyOnLoadFunctionNames.push("myCustomFunctionName");
to make your JavaScript function run on load.