Server side component, events and AJAX

M

Mike

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.



Basically, a user will press a button (in the ASP.NET form, client
side), a method on the server side component will be invoked, it will do
whatever is needed and also will trigger some events that I need to
catch in the ASP.NET form and act accordingly. I don’t want to refresh
the page so I guess AJAX will be needed.

Is this possible in the first place, and if it is, can you help me with
this problem?



Thanks,

Mike
 
R

rowe_newsgroups

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.

Basically, a user will press a button (in the ASP.NET form, client
side), a method on the server side component will be invoked, it will do
whatever is needed and also will trigger some events that I need to
catch in the ASP.NET form and act accordingly. I don't want to refresh
the page so I guess AJAX will be needed.

Is this possible in the first place, and if it is, can you help me with
this problem?

Thanks,

Mike
From what I read, yes it is possible using AJAX. You'll need to wrap
the button (or map it as an asyncpostbacktrigger in the Triggers
collection) and any effected controls in an AJAX UpdatePanel. Then
when the button is clicked it will perform the server-methods
asynchronously. I would highly recommend you watch some of the how-do-
I videos over in the AJAX site - Joe Stagner did a great job walking
through the various parts of the AJAX extensions and the toolkit.

http://www.asp.net/learn/ajax-videos/

Thanks,

Seth Rowe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top