Audi.RS4
Audi.RS4

Reputation: 25

Server initiate client response in ASP.NET

I have a ASP.NET application that has a form, which sends its information to be processed by the backend server. The server though will sometimes need to send information back the frontend client page for confirmation. I want the server thread to sit and wait for the clients response, and then continue when confirmation is received from the client.

I've looked into using ICallbackEventHandler but it won't keep the session like I need with my current design.

Any thoughts on how I need to adjust the design or implement what I am looking for?

Thanks.

Upvotes: 0

Views: 290

Answers (2)

Aghilas Yakoub
Aghilas Yakoub

Reputation: 29000

You can use Ajax Developpement, for example you can use UpdatePanel control based on Triggers

Link : http://msdn.microsoft.com/fr-fr/library/system.web.ui.updatepanel.aspx

In your specific case you can use Update Method

LInk : http://msdn.microsoft.com/fr-fr/library/system.web.ui.updatepanel.update.aspx

Upvotes: 0

magnattic
magnattic

Reputation: 13028

If you want to avoid a complete Postback, you could use a technology like SignalR to call a javascript method on the client from the server.

Upvotes: 1

Related Questions