Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / October 2007

Tip: Looking for answers? Try searching our database.

ASP.NET, AJAX and server side events

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike - 08 Sep 2007 21:05 GMT
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
Teemu Keiski - 13 Sep 2007 18:02 GMT
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/PageRequ
estManagerClass/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?

Signature

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

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
Teemu Keiski - 13 Sep 2007 18:44 GMT
ID is supposed to be ID="Label1". Sorry for the typo.

Signature

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

> Hi,
>
[quoted text clipped - 34 lines]
>
> Mike
Jonathan - 17 Sep 2007 22:12 GMT
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?

> ID is supposed to be ID="Label1". Sorry for the typo.
>
[quoted text clipped - 36 lines]
> >
> > Mike
curnutte@gmail.com - 01 Oct 2007 01:14 GMT
On Sep 17, 2:12 pm, Jonathan <Jonat...@discussions.microsoft.com>
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,
[quoted text clipped - 55 lines]
>
> > > Mike

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

Thanks,

John

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.