Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Load user control and handle post back in ASP.Net

I'm working with ASP.NET 3.5 C#

I've seen a good few questions like this around but havn't actually come across any articles with the answer (maybe just been unlucky with my research!).

Basically I'm looking to have say 3 links (or buttons) on a page, which in turn will dynamically load a specific user control into an update panel with AJAX.

Then I would like the usercontrol loaded to be capable of handling postback within the update panel (basically no page refreshes) to do its processing and return output.

Is this possible?

Does anyone have any pointers to articles/blogs covering this?

I've seen many, but none covered handling postbacks from the user control or handling the postbacks within the update panel.

I may even have the wrong end of the stick here.

Any tips would be great to start me off :)

Cheers!

like image 281
cty Avatar asked Nov 15 '22 03:11

cty


1 Answers

Have a look at this blog post.

It may not be exactly what you want (Postback issue), but can be a good alternative solution to get started with.

like image 147
yaka Avatar answered Dec 05 '22 19:12

yaka