I have a server side event Page_Load in aspx page.
<%@ Page Languadge=c# AutoEventWireup="true" %>
<script Languadge=c# runat=server>
void Page_Load(Object sender, EventArgs e)
{
// my server side code;
}
</script>
And I want that the follow client side script will be executed too.
<script Languadge=javascript>
function DoOnLoad()
{
// my client side code
}
</script>
<body onload="DoOnLoad();">
....
</body>
The both scripts are executed on onload event, but one on server and second
on client.
Is it possiable? I try and the client side script don't work very well.
Yes, it is possible and there is nothing special in it. These two events
have nothing to do one with another. The server event is a part of a page
building process, whereas the client one is a part of page running process.
Two absolutely different tasks.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.