I’m building a new website and want to use Ajax controls.
Do I need to put a ScriptManager control on both the MasterPage and on each content page? or Just on the MasterPage?(or just on the content page?)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You are only allowed to have one ScriptManager. You can have it on either. Having it on the master page saves you the task of adding it on content pages. However, writing custom script within the script manager is only possible if you have it in the content pages. As stated below, having two ScriptManagers throws an error on loading the page.