Sunday, March 11, 2012

Passing data with an UpdatePanel postback

I'm still looking for feedback on this...


Don't know if this is what you are looking for but I found this today poking around the AjaxToolKit...
Seems the way it communicates to the js is to inject a StartupScript into ScriptManager



string script =string.Format(CultureInfo.InvariantCulture,"Sys.Application.add_load(function(){{" + AjaxControlToolkit.ModalPopupBehavior.invokeViaServer('{0}',{1}); " + "}}); ", BehaviorID, show ? "true" : "false");

ScriptManager.RegisterStartupScript(this, GetType(), show ? "show" : "hide", script, true);

I'm still looking for an answer on this one...

Does ANYONE from Microsoft read ANY of these posts?

No comments:

Post a Comment