473,399 Members | 3,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

client & server side event

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
2 2021
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Stephen | last post by:
Hey Everyone, I have a problem with a web application due to the use of both client-side and server side script on the on-click event of a button. The client side script runs first as expected...
1
by: Stephen | last post by:
Hey All, I have a problem with a web application due to the use of both client-side and server side script on the on-click event of a button. The client side script runs first as expected however...
1
by: Jim Hammond | last post by:
I can get data from a client-side assembly to the server in two manual steps, but I need to be able to do it in one step. Step 1: The user presses the manually coded "Step 1" button, which calls...
3
by: Borr | last post by:
Hi, I have an ASP .NET page, that runs client side timer that does something on the Server side and after that loads another page. So I have on client side something like : function...
4
by: Barb | last post by:
I have a user control as my Save button for my page. When the Save button is clicked, I want some client-side validation to take place from a javascript function in the page, and then I'd like the...
6
by: adolf garlic | last post by:
A postback I'm doing takes ages to get the data which it then uses to populate a table. What I want to know is: How can I get the client side to fire a 'resize' event when the postback thing...
1
by: vidya | last post by:
Hi, I have a button which is a web control. I have some validation in javascript for the button in .aspx file and some in the button onclick event in code behind(C#). I need to get through both...
3
by: sklett | last post by:
I need to add extensive validation and interaction client scripting to a web form. I've done some initial searches for "asp.net and client scripting" and I've found a couple articles that show...
1
by: Chris | last post by:
Hi, I have jsut started to learn ASP development and have read many articles regarding which is the best to use regarding JavaScript or VBScript. All of the learning that I have done so far has...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.