Use this tag:
<body ID="myBody" runat="server" bgColor="#ffffff">
Use this codeBehind:
Dim myBody As HtmlControls.HtmlGenericControl
The name "myBody" connects the two.
Then use this in your code:
myBody.Attributes.Add("onLoad","someItem.setFocus();")
Thanks, Jos.
I understand the concepts and connections but it still doesn't work.
Here's an new aspect you may have missed... the "something" I'm trying to
set focus to was pushed into a PLACEHOLDER.
So my thinking was that the <body> was THE place to set the focus since by
this point the browser has complete control, the object has to exist, etc
etc etc.
Other attempts trying to use Javascript in PAGE_LOAD, and elsewhere always
brought an error saying essentially ("We ain't got none of those on this
page!")... meaning the render had not taken place fully enough for the item
to even exist on the page yet.
I don't get any errors from your suggestion but the item still does not
receive the focus when the page has finished loading.
Does the PLACEHOLDER notion change anything you've suggested?
thanks, again
tob'