M
Matcon
Hello,
I have a asp.net 2.0 (vb.net) page, which uses a master page, and there is a
javascript function (myfunction) defined in the <head> of that master page.
Is there a way to run the function from the page load event of the page?
I am able to run the function when there is a change in, say, a text box, by
adding the following to the page load event:
TextBox.Attributes.Add("onChange", "javascript:myfunction()")
However, the following gives me an error that "Attributes is not a member of
pagename":
Me.Attributes.Add("onLoad", "javascript:myFunction()")
I'm trying to get myfunction to run when the page loads by adding the
correct code to Me.Load.
Thank you for your help.
I have a asp.net 2.0 (vb.net) page, which uses a master page, and there is a
javascript function (myfunction) defined in the <head> of that master page.
Is there a way to run the function from the page load event of the page?
I am able to run the function when there is a change in, say, a text box, by
adding the following to the page load event:
TextBox.Attributes.Add("onChange", "javascript:myfunction()")
However, the following gives me an error that "Attributes is not a member of
pagename":
Me.Attributes.Add("onLoad", "javascript:myFunction()")
I'm trying to get myfunction to run when the page loads by adding the
correct code to Me.Load.
Thank you for your help.