Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Sat, 8 Sep 2007 16:05:04 -0400,    group: microsoft.public.dotnet.distributed_apps        back       


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
date: Sat, 8 Sep 2007 16:05:04 -0400   author:   Mike

Re: ASP.NET, AJAX and server side events   
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

"Mike"  wrote in message 
news:3B3FEA5C5A35457787F99BAF32AC6F8A@PHBASE...
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
date: Thu, 13 Sep 2007 20:02:41 +0300   author:   Teemu Keiski

Re: ASP.NET, AJAX and server side events   
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

"Teemu Keiski"  wrote in message 
news:%23sLfnfi9HHA.1416@TK2MSFTNGP03.phx.gbl...
> 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
>
> "Mike"  wrote in message 
> news:3B3FEA5C5A35457787F99BAF32AC6F8A@PHBASE...
> 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
>
>
>
date: Thu, 13 Sep 2007 20:44:18 +0300   author:   Teemu Keiski

Re: ASP.NET, AJAX and server side events   
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?

"Teemu Keiski" wrote:

> 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
> 
> "Teemu Keiski"  wrote in message 
> news:%23sLfnfi9HHA.1416@TK2MSFTNGP03.phx.gbl...
> > 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
> >
> > "Mike"  wrote in message 
> > news:3B3FEA5C5A35457787F99BAF32AC6F8A@PHBASE...
> > 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
> >
> >
> > 
> 
> 
>
date: Mon, 17 Sep 2007 14:12:01 -0700   author:   Jonathan

Re: ASP.NET, AJAX and server side events   
On Sep 17, 2:12 pm, Jonathan 
wrote:
> 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 theserver-sideprocessing 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?
>
> "Teemu Keiski" wrote:
> > ID is supposed to be ID="Label1". Sorry for the typo.
>
> > --
> > Teemu Keiski
> > AspInsider,ASP.NETMVP
> >http://blogs.aspadvice.com/joteke
> >http://teemukeiski.net
>
> > "Teemu Keiski"  wrote in message
> >news:%23sLfnfi9HHA.1416@TK2MSFTNGP03.phx.gbl...
> > > Hi,
>
> > > if you useASP.NEtAjaxand 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.WebFor...)
> > > to get to the point when async postback is about to be sent and handled.
>
> > > Or are you using some otherAJAXimplementation?
>
> > > --
> > > Teemu Keiski
> > > AspInsider,ASP.NETMVP
> > >http://blogs.aspadvice.com/joteke
> > >http://teemukeiski.net
>
> > > "Mike"  wrote in message
> > >news:3B3FEA5C5A35457787F99BAF32AC6F8A@PHBASE...
> > > Hi,
>
> > > I'm wondering if I can do this withASP.NET?
>
> > > I have anASP.NETapplication that runs a component that fires some
> > >events.
> > > When theseeventsare 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 usingAJAX) so this triggers the CLICK event of the button on the
> > >server side, and this executes come code .
>
> > > This code will fire someeventsat the server level ...
>
> > > I want the client (user in its web browser) to "see" thiseventsas they
> > > are fired and react properly, let's say update a LABEL control as this
> > >eventsare triggered and catched.
>
> > > Please help me out here, you savvy people, because I'm stuck!
>
> > > Later and thanks,
>
> > > Mike

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

Thanks,

John
date: Mon, 01 Oct 2007 00:14:28 -0000   author:   unknown

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us