473,322 Members | 1,421 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,322 software developers and data experts.

URGENT - ASP.NET, AJAX and server side events

Hi,

I'm wondering if I can do this with ASP.NET?

I have an ASP.NET application that runs a component that fires some
events.

When these events are fired, I will like to trap them at client level
(that is the web browser session where the user is running the actual
application).

Let's say this scenario will be like this:

Person clicks on ASPX page button.

(I'm using AJAX) so this triggers the CLICK event of the button on the
server side, and this executes come code .

This code will fire some events at the server level ...

I want the client (user in its web browser) to "see" this events as they
are fired and react properly, let's say update a LABEL control as this
events are triggered and catched.

Please help me out here, you savvy people, because I'm stuck!

Later and thanks,

Mike


Sep 9 '07 #1
3 2007
Mike wrote:
Hi,

I’m wondering if I can do this with ASP.NET?

I have an ASP.NET application that runs a component that fires some events.

When these events are fired, I will like to trap them at client level
(that is the web browser session where the user is running the actual
application).

Let’s say this scenario will be like this:

Person clicks on ASPX page button…

(I’m using AJAX) so this triggers the CLICK event of the button on the
server side, and this executes come code …

This code will fire some events at the server level …..

I want the client (user in its web browser) to “see” this events as they
are fired and react properly, let’s say update a LABEL control as this
events are triggered and catched.

Please help me out here, you savvy people, because I’m stuck!

Later and thanks,

Mike
I already replied to this question in the m.p.d.languages.vb group:

If you want to update something on the page, just put it in an update panel.

If you want to do something more complicated that needs client script to
run, you can send data to the client and register an event handler for
the EndRequest event to recieve it:

Sys.WebForms.PageRequestManager.getInstance().add_ endRequest(EndRequest);

function EndRequest(sender, args) {
// handle the data here
}

The args argument is an object that has a dataItems property that
contains data items that you send from the server. Use the
RegisterDataItem method of the ScriptManager class to send data items
from the server.

--
Göran Andersson
_____
http://www.guffa.com
Sep 9 '07 #2
Can you please send me a more detailed example?
Do I have to use Javascript or can I do it with VB functions (manage
code)?

Thanks

-----Original Message-----
From: Göran Andersson [mailto:gu***@guffa.com]
Posted At: Sunday, September 09, 2007 3:56 AM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: URGENT - ASP.NET, AJAX and server side events
Subject: Re: URGENT - ASP.NET, AJAX and server side events

Mike wrote:
Hi,

I’m wondering if I can do this with ASP.NET?

I have an ASP.NET application that runs a component that fires some
events.
>
When these events are fired, I will like to trap them at client level
(that is the web browser session where the user is running the actual
application).

Let’s say this scenario will be like this:

Person clicks on ASPX page button…

(I’m using AJAX) so this triggers the CLICK event of the button on the
server side, and this executes come code …

This code will fire some events at the server level …..

I want the client (user in its web browser) to “see” this events as
they
are fired and react properly, let’s say update a LABEL control as this
events are triggered and catched.

Please help me out here, you savvy people, because I’m stuck!

Later and thanks,

Mike
I already replied to this question in the m.p.d.languages.vb group:

If you want to update something on the page, just put it in an update
panel.

If you want to do something more complicated that needs client script to

run, you can send data to the client and register an event handler for
the EndRequest event to recieve it:

Sys.WebForms.PageRequestManager.getInstance().add_ endRequest(EndRequest)
;

function EndRequest(sender, args) {
// handle the data here
}

The args argument is an object that has a dataItems property that
contains data items that you send from the server. Use the
RegisterDataItem method of the ScriptManager class to send data items
from the server.

--
Göran Andersson
_____
http://www.guffa.com

Sep 9 '07 #3
Mike wrote:
Can you please send me a more detailed example?
A more detailed example of what? I don't know enough about what you are
trying to do to be more detailed.
Do I have to use Javascript or can I do it with VB functions (manage
code)?
That depends on what you are trying to do. If you want to run some code
in the client, that would be Javascript.

--
Göran Andersson
_____
http://www.guffa.com
Sep 9 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: | last post by:
Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I keep getting the following error:- Error In:...
17
by: petermichaux | last post by:
Hi, Is it possible for an AJAX request to be left open for multiple responses? This could avoid repetitive polling of the server. Thanks, Peter
31
by: Tony | last post by:
I just noticed that prototype.js is one of the files in the Ajax.NET distribution - I'm pretty concerned about this. Does anyone know if this is the same "prototype.js" that is not well-liked...
1
by: John Chan | last post by:
Hi, Im doing a maintenance application in ajax and coldfusion at work on IE6 exclusively. I have a save button on each form and i have to do various validations server side and on client side...
4
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I have seen several articles about this subject but I was wondering with ajax is this easer. The articles mentioned client callback and the onbeforeunload event of the browser. Can AJAX be used for...
4
by: pbd22 | last post by:
Hi. I have an ajax question. I am wondering if it is possible to get the response from a method within a given page, and that function alone? Traditionally, I have been getting the response...
6
by: HockeyFan | last post by:
I'd like to have an AJAX textbox that after the user fills in, will auto-fill another textbox on the page without having a postback occur. It doesn't have to do any filtering or any other thing...
1
by: Mike | last post by:
Hi, I have a component that resides on the server side (distributed). This component will trigger some events that I need to catch in an ASP.NET form.
3
by: Mike | last post by:
Hi, I’m wondering if I can do this with ASP.NET?
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.