Click here to Skip to main content
15,892,072 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using ajax toolkit in my project. My project is having a master page and i am inheriting this master page in my web pages.I am using Script manager on every page but now requirement came to display a real time clock also on the master page.I had written the code using Timer to display real time clock on master page but i am getting error "Only one instance of a ScriptManager can be added to the page. ".

How to fix this problem as i don't want to remove script manager from the webpages.
Posted

Try to Add EventValidation="False" to Top of Inherited Page.

<![CDATA[<% @Page Language="C#" MasterPageFile="~/user_master.master" AutoEventWireup="true" CodeFile="xx.aspx.cs" Inherits="xx_xx" Title="xx" EnableEventValidation="false" %>]]>
 
Share this answer
 
keep only scriptmanager in masterpage.. and remove from content page...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900