T
tshad
I have an object surrounded by <div visible=false runat="server"></div>. So
it doesn't show on the page until I set visible=true.
I need to set focus to the object on post back:
if not IsPostBack then
Dim temp as String = "document.forms[0].Password.focus()"
myBody.Attributes.Add("onload",temp)
end if
This code works fine but it does give me a Javascript error symbol at the
bottom of the IE screen which says that it is null or not an object.
How can I set this up so that I don't get the error?
Thanks,
Tom
it doesn't show on the page until I set visible=true.
I need to set focus to the object on post back:
if not IsPostBack then
Dim temp as String = "document.forms[0].Password.focus()"
myBody.Attributes.Add("onload",temp)
end if
This code works fine but it does give me a Javascript error symbol at the
bottom of the IE screen which says that it is null or not an object.
How can I set this up so that I don't get the error?
Thanks,
Tom