By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,619 Members | 1,712 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,619 IT Pros & Developers. It's quick & easy.

client & server side event

P: n/a
Eli
Hello.

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.

Thanks
Eli
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Could you restate what your trying to do?

"Eli" wrote:
Hello.

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.

Thanks
Eli

Nov 18 '05 #2

P: n/a
Eli,

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.

Eliyahu

"Eli" <ne******@hotmail.com> wrote in message
news:Oe*************@TK2MSFTNGP12.phx.gbl...
Hello.

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.

Thanks
Eli

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.