Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
I am using it in Gridview's EditTemplate Field to show color with ajax 3.5
This is my master page hierarchy
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Outer.master.cs" Inherits="Home" %>
<%@ Master Language="C#" MasterPageFile="~/Outer.master" AutoEventWireup="true" CodeFile="FullMid.master.cs" Inherits="FullMid" %>
<%@ Page Title="" Language="C#" MasterPageFile="~/FullMid.master" AutoEventWireup="true" CodeFile="StatusRoomMaster.aspx.cs" Inherits="StatusRoomMaster" %>
Page where I am getting error
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<EditItemTemplate>
<asp:TextBox ID="txtColorCode" runat="server" Text='<%# Bind("ColorCode") %>'></asp:TextBox>
<asp:ColorPickerExtender ID="txtColorCode_ColorPickerExtender" runat="server"
Enabled="True" OnClientColorSelectionChanged="colorChanged"
SampleControlID="txtColorCode" TargetControlID="txtColorCode">
</asp:ColorPickerExtender>
</EditItemTemplate>
I am using it under masterpage's -> masterpage's -> page
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
I am using this in outer.master and no update panel has been used.