A: 

You can find it here

http://codeclimber.net.nz/archive/2007/06/26/how-to-refresh-an-updatepanel-from-javascript.aspx

don't worry about the article title it has what you need Just do the four steps and you are ready to go.

Kronass
humm... there's a hidden textbox, just the way I'm doing but I can't get that value back, and in my page there is no updatePanel in the page... but it gives me a new pair of eyes on the subject. Thxs.
balexandre
you welcome, would you please tell me what did you do to post the value in the hidden box so to know the reason why u r not getting a value if it is possible. thx
Kronass
A: 

You can use a LinkButton for each "Show Company Structure" link, and set the CommandArgument property with the corresponding company id. The LinkButton will cause a postback.

A second solution would be to use a hidden variable : <input type="hidden" id="hiddenCompanyNumber"> and set it's value in the showStruct method. You can then call __doPostBack(), for which you need a control upon which to postback I think.

All in all, I think the first solution is less hacky.

Heilo
+2  A: 

I know this is not the answer to you question but I think you may be asking the wrong question.

It looks to me as if you have a search result+details view scenario that you are going about the wrong way.

When you click "Show Company structure" you want to see the details on the second tab right? If this is the case then the tab approach would be confusing to the user, it would be better with a modal popup that shows the details. No postback just AJAX load a page with the details into a modal popup window.

This is very easy with JQuery using the dialog widget in JQueryUI and the AJAX load function $('#SomeDiv').load('details.aspx?id='+companyid);

http://docs.jquery.com/Ajax/load#urldatacallback

It would give a much better user experience and it is surprisingly simple to code.

I hope this helps.

Helo
duhhh! sometimes we just love to complicate :)
balexandre