The javascript onload happens after the browser has loaded the HTML returned
by the server and parsed it.
In order for the server to return the HTML, it has to process the IIS
request, and then process the page. This involves calling the various page
events, including the Load event.
So, you see, without the HTML, there is no way to run any javascript events.
And without the Load event being fired (among many other things happening),
there is no way to get the HTML to the browser.
Consider the order of events that happen when you browser requests a page
from the server, and you will see that what you are asking for is not
possible and doesn't even really make sense in terms of how web applications
work.
"Opa" <Op*@discussions.microsoft.com> wrote in message
news:DE**********************************@microsof t.com...
Hi,
I have a form with a javacript function that I wish to call before the
Page_Load event on the server side. The function is called in the onload
of
window (ie. window.onload = "myfunction()"
Is this possible? If so how, If not is there a workaround ?