I'm still looking for feedback on this...
Thanks
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
ScriptManager
http://ajax.asp.net/docs/mref/3b24af40-d9f2-7ddd-cb8e-38a9bb90b9c6.aspx
Ex...
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