all groups > dotnet distributed apps > september 2007 >
You're in the

dotnet distributed apps

group:

ASP.NET, AJAX and server side events


ASP.NET, AJAX and server side events Mike
9/8/2007 4:05:04 PM
dotnet distributed apps:
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,



Re: ASP.NET, AJAX and server side events Teemu Keiski
9/13/2007 8:02:41 PM
Hi,

if you use ASP.NEt Ajax and you have say LAbel with ID="LABEL!" on the Page.
So if you in Button's click set Label1.Text = "Button clicked!" doesn't that
indicate it quite well? At client-side you can use PageRequestManager
(http://www.asp.net/ajax/documentation/live/clientreference/Sys.WebForms/PageRequestManagerClass/default.aspx)
to get to the point when async postback is about to be sent and handled.

Or are you using some other AJAX implementation?

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

[quoted text, click to view]
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


Re: ASP.NET, AJAX and server side events Teemu Keiski
9/13/2007 8:44:18 PM
ID is supposed to be ID="Label1". Sorry for the typo.


--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

[quoted text, click to view]

Re: ASP.NET, AJAX and server side events Jonathan
9/17/2007 2:12:01 PM
I'm trying to do something similar (I think) to Mike. My scenario involves
processing a group of files. The user clicks a button in the browser,
initiating the server-side processing code. As this code finishes each file,
I'd like the browser to update an icon next the file in a list on the client
side. The UpdatePanel.Update method seems to work only after all server-code
code finishes. Whats the best way to accomplish this?

[quoted text, click to view]
Re: ASP.NET, AJAX and server side events
10/1/2007 12:14:28 AM
On Sep 17, 2:12 pm, Jonathan <Jonat...@discussions.microsoft.com>
[quoted text, click to view]

I have the exact same problem. Let me know if you ever track down an
answer.

Thanks,

John
AddThis Social Bookmark Button