Advertisement.

TransHimalaya.in

Everest Helicopter Tour for a day

Book exciting packages at www.transhimalaya.in

UpdatePanel not working with ToolkitScriptManager

When u use scriptmanager with updatepanel then it's fine.
But when u add ToolkitScriptManager for any ajax control like extender, then page wont run because there are two scriptmanager.
So if u delete scriptmanager then UpdatePanel will not work with ToolkitScriptManager.

To resolve this issue, only use ToolkitScriptManager because it has scriptmanager as parent.
make following changes in your code. just add property "ChildrenAsTriggers="true""

lt&&;@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" % gt&&;

...........

lt&&;asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" ChildrenAsTriggers="true" gt&&;
lt&&;/asp:ToolkitScriptManagergt&&;

Comments

THE ONE said…
i was not able to upload pdf file . getting error cannot access a closed file. to resolve just change follwing tag in your we.config file

httpRuntime executionTimeout="1800" maxRequestLength="400000" requestLengthDiskThreshold="8192"

it will upload max 40 mb at a rate of 80 kb. i did in my intranet but httpRuntime executionTimeout="1800" maxRequestLength="400000" requestLengthDiskThreshold="8192" may cause DoS attack on internet.
James said…
ChildrenAsTriggers is not a property of ToolkitScriptManager.
THE ONE said…
ya.. but solution is only for updatepanel with tool scriptmanager... normally this error dont come..
Hello Mr. James


ChildrenAsTriggers is not a property of ToolkitScriptManager.

ChildrenAsTriggers is a property of UpdatePanel.

Instead of putting the property in ToolkitScriptManager put it inside UpdatePanel.

Also try to put these properties in ToolkitScriptManager, if you get an errorEnableScriptGlobalization="true" EnableScriptLocalization="true"
Jay said…
It still does not work. It still asks for Script Manager. I have AjaxControlTollKit calendar control used in a page. Now I want updatePanel functionality in same page and I can not put UpdatePanel with out ScriptManger!!!!
THE ONE said…
Use toolkit script manager at its proper place after the head ag
Blog For ALL said…
hi,
i am using toolkit scriptmanager.i have added a feedbackpanel to my page.but the feedback is not visible.after this i added update panel and scriptmanager.but it shows an error stating cannot use two scripmanager.help me in displaying my feedback.is there any alternate for update pannel if i use toolkit script manager..
THE ONE said…
No you can't use two toolkitscript manager.. Plz check that you have declared toolkitscript manager just ofter body tag... then use the update panel... or post ur code...

Most Viewed Post

solution for facebook static.ak.fbcdn.net waiting

Connect Sony XPLOD MEX-BT2500 Bluetooth CD Receiver with ur mobile

Crystal Report : Show data horizontally (Left to right) i.e. columns as rows

Google+ Followers