Hi Daniel,

Sorry to hear that your application is such a hodgepodge.  (Update panels, 
script managers, and startup registration are old -- but not particularly 
dear -- friends of mine.)

My first thought was to do something tricky with ngInclude, but if 
$route.reload() isn't working, my guess is that Angular is becoming 
altogether unbound at the ngApp level.

Here are a few ideas:

   1. Try manually bootstrapping your Angular stuff in the JS that runs 
   after the partial postback.  (https://docs.angularjs.org/guide/bootstrap, 
   in case you're not familiar.)
      1. This would confirm whether my guess, above, is correct.
   2. Put your Angular stuff in an iframe.
   3. Put your update panel stuff in an iframe.
   4. Non-answer: swap your control's partial postback for a direct 
   JavaScript AJAX call (maybe using jQuery or something)

Good luck -- I'd be curious to hear how it works out for you.

SS

On Wednesday, September 3, 2014 7:20:11 AM UTC-4, Daniel Ferens wrote:

> I have trouble to get angular working with .Net partial postbacks.
>
> Question is basically same to this : Re-initialize Angular bindings after 
> partial postback 
> <http://stackoverflow.com/questions/23371744/re-initialize-angular-bindings-after-partial-postback>
>
> Basically i have tab on which i have angular app, then i have second tab 
> with some c# control, I have to do partial postback between tabs and when I 
> am going back to my app, there it is nothing.
>
> I have tried routing with ngView then I have tired $route.reload() ( it 
> goes to controller and i can see that template is beeing pulled down but 
> result on page is none. Then i Tried 
> compile(templateCache.get(lazyTableControllerRoute.current.templateUrl))(scope)
>  
> as mentioned here:https://github.com/angular/angular.js/issues/6280
>  Nothing.
>
> Please help :)
>
>
> *Click here for stackoverflow question* 
> <http://stackoverflow.com/questions/25640138/angular-template-and-net-partial-postback>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to