Hello,
on every page (quite some) where I have a WARP I don't seem to be able to call a javascript function through code via
Scriptmanager.registerstartupscript(.. . Which I could use to give the user easy warning messages through alert or
get some return values via window.confirm.
Now I replaced the warp panel with a normal updatepanel once and all worked fine so I wonder is this a bug or am I
doing something wrong here?
thx in advance
W.
maybe you can try this: WebAsyncRefreshPanel1.Controls.Add(new LiteralControl(" window.location='IBuildingCreate.aspx' your js here"));
I'm not sure if it works.
Hi,
That is almost it. While async postback of WARP, the only local (in-line) javascript statements can be used. You may add Literal with javascript content to WARP or register scripts with CallBackManager. You also may use both together: standard ScriptManager/Page registrations and CallBackManager registration. Because, within full postback CallBackManager will be ignored and while asyn postback the Page script will be ignored. For example to register with CallBackManager:
Infragistics.WebUI.Shared.CallBackManager.AddScriptBlock(this, this.WebAsyncPanel1, 'any javascript statements');
Just got back from vacation. Thx for the heads up on the why's of the problem. I might get to try this but I'm getting kinda busy on some other project now :/.
I'll keep you posted.
Hey,
I happened to need it again and the callbackmanager worked like a charm thx for the help.