Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Error: Sys.InvalidOperationException: A control is already associated with the element.Error: Sys.InvalidOperationException: A control is already associated with the element.
Previous
 
Next
New Post
10/16/2011 9:45 PM
 
Playing around with Telerik Controls in a custom DotNetNuke Module in DotNetNuke 5.6.3. I have added a rad grid to my page. When I load it, it loads fine with some sample data. Yet when I click edit, it drops down to edit but I am getting the error:

Error: Sys.InvalidOperationException: A control is already associated with the element.


Any ideas?

Thank you,
James Campbell
MCP,MCSA,MCSE,Sec +
http://jamesecampbell.blogspot.com
 
New Post
10/17/2011 9:31 AM
 
possibly a causesvalidation issue - see http://www.dotnet-developer.de/2008/07/aspnet2005/a-control-is-already-associated-with-the-element/

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
10/17/2011 9:45 AM
 
I added causesvalidation = false to everything, same issue. When I create the same page outside dnn it works fine. Just in DNN I get this error.

Thank you,
James Campbell
MCP,MCSA,MCSE,Sec +
http://jamesecampbell.blogspot.com
 
New Post
10/17/2011 1:02 PM
 
Any other suggestions? I am at a loss here, I have a feeeling it has to do with the script manager and AJAX.

Thanks,
Jim

Thank you,
James Campbell
MCP,MCSA,MCSE,Sec +
http://jamesecampbell.blogspot.com
 
New Post
10/17/2011 1:26 PM
 
here is my code:

<%@ Control language="C#" Inherits="me.Modules.ImageRotator.EditImageRotator" CodeFile="EditImageRotator.ascx.cs" AutoEventWireup="true"%>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<%@ Register TagPrefix="dnn" TagName="TextEditor" Src="~/controls/TextEditor.ascx" %>
<%@ Register TagPrefix="dnn" TagName="Audit" Src="~/controls/ModuleAuditControl.ascx" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
 
 
  
  
  
  
  
<div>
  
  <ContentTemplate>
    <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True"
      AllowSorting="True" AutoGenerateDeleteColumn="True"
      AutoGenerateEditColumn="True" CausesValidation="False" CellSpacing="0"
      DataSourceID="SqlDataSource1" GridLines="None" RegisterWithScriptManager="true"
      Skin="WebBlue">
      <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
        <Selecting AllowRowSelect="True" />
      </ClientSettings>
      <MasterTableView AutoGenerateColumns="False" DataKeyNames="ItemID"
        DataSourceID="SqlDataSource1">
        <CommandItemSettings ExportToPdfText="Export to PDF" />
        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
        </RowIndicatorColumn>
        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
        </ExpandCollapseColumn>
        <Columns>
          <telerik:GridBoundColumn DataField="ModuleID" DataType="System.Int32"
            FilterControlAltText="Filter ModuleID column" HeaderText="ModuleID"
            SortExpression="ModuleID" UniqueName="ModuleID">
          </telerik:GridBoundColumn>
          <telerik:GridBoundColumn DataField="ItemID" DataType="System.Int32"
            FilterControlAltText="Filter ItemID column" HeaderText="ItemID" ReadOnly="True"
            SortExpression="ItemID" UniqueName="ItemID">
          </telerik:GridBoundColumn>
          <telerik:GridBoundColumn DataField="Content"
            FilterControlAltText="Filter Content column" HeaderText="Content"
            SortExpression="Content" UniqueName="Content">
          </telerik:GridBoundColumn>
          <telerik:GridBoundColumn DataField="CreatedByUser" DataType="System.Int32"
            FilterControlAltText="Filter CreatedByUser column" HeaderText="CreatedByUser"
            SortExpression="CreatedByUser" UniqueName="CreatedByUser">
          </telerik:GridBoundColumn>
          <telerik:GridBoundColumn DataField="CreatedDate" DataType="System.DateTime"
            FilterControlAltText="Filter CreatedDate column" HeaderText="CreatedDate"
            SortExpression="CreatedDate" UniqueName="CreatedDate">
          </telerik:GridBoundColumn>
          <telerik:GridBoundColumn DataField="Link"
            FilterControlAltText="Filter Link column" HeaderText="Link"
            SortExpression="Link" UniqueName="Link">
          </telerik:GridBoundColumn>
          <telerik:GridBoundColumn DataField="SortOrder" DataType="System.Int32"
            FilterControlAltText="Filter SortOrder column" HeaderText="SortOrder"
            SortExpression="SortOrder" UniqueName="SortOrder">
          </telerik:GridBoundColumn>
        </Columns>
        <EditFormSettings>
          <EditColumn FilterControlAltText="Filter EditCommandColumn column">
          </EditColumn>
        </EditFormSettings>
      </MasterTableView>
      <FilterMenu EnableImageSprites="False">
      </FilterMenu>
      <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
      </HeaderContextMenu>
    </telerik:RadGrid>
  </ContentTemplate>
 
      
    <br />
 
    </div>
    <div>
    <asp:linkbutton cssclass="CommandButton" id="cmdUpdate" OnClick="cmdUpdate_Click" resourcekey="cmdUpdate" runat="server" borderstyle="none" text="Update" CausesValidation="False"></asp:linkbutton
    <asp:linkbutton cssclass="CommandButton" id="cmdCancel" OnClick="cmdCancel_Click" resourcekey="cmdCancel" runat="server" borderstyle="none" text="Cancel" causesvalidation="False"></asp:linkbutton
    <asp:linkbutton cssclass="CommandButton" id="cmdDelete" OnClick="cmdDelete_Click" resourcekey="cmdDelete" runat="server" borderstyle="none" text="Delete" causesvalidation="False"></asp:linkbutton
</div>
 
 
<dnn:audit id="ctlAudit" runat="server" />

Thank you,
James Campbell
MCP,MCSA,MCSE,Sec +
http://jamesecampbell.blogspot.com
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Error: Sys.InvalidOperationException: A control is already associated with the element.Error: Sys.InvalidOperationException: A control is already associated with the element.


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out