There was an error rendering the control.

  •  03-04-2008, 10:19 AM

    There was an error rendering the control.

    I'm testing CuteEditor to purchase a license, but stil receive the next error in Visual Studio 2005 Express Edition:
     
    "There was an error rendering the control. Exception has been thrown by the target of the invocation."
     
    I've read the post at http://cutesoft.net/forums/thread/26518.aspx  but this is not giving a solution.
     
    I installed the control in my toolbox as mentioned in:
     
    I receive the error when I place the control in the edittemplate of a Detailsview. The Detailsview is in VWS replaced with a box containing the errror. At runtime everything works well.
     
    The preinstalled example datagrid-example.aspx gives the same error.
     
    Do you have a solution for me? Thanks in advance, Greetings, Adrey
     
    My page looks likes this:
     

    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="testpage6.aspx.vb" Inherits="testpage6" %>

    <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" >

    <head runat="server">

    <title>Untitled Page</title>

    </head>

    <body>

    <form id="form1" runat="server">

    <div>

    <asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="125px" AutoGenerateRows="False" DataKeyNames="app_id" DataSourceID="SqlDataSource1" DefaultMode="Edit">

    <Fields>

    <asp:BoundField DataField="app_id" HeaderText="app_id" InsertVisible="False" ReadOnly="True"

    SortExpression="app_id" />

    <asp:BoundField DataField="user_id" HeaderText="user_id" SortExpression="user_id" />

    <asp:BoundField DataField="cdt_id" HeaderText="cdt_id" SortExpression="cdt_id" />

    <asp:BoundField DataField="app_price" HeaderText="app_price" SortExpression="app_price" />

    <asp:CheckBoxField DataField="app_reserve" HeaderText="app_reserve" SortExpression="app_reserve" />

    <asp:CheckBoxField DataField="app_confirmed" HeaderText="app_confirmed" SortExpression="app_confirmed" />

    <asp:TemplateField HeaderText="app_remark" SortExpression="app_remark">

    <EditItemTemplate>

    <CE:Editor ID="Editor1" runat="server" Text='<%# Bind("app_remark") %>' >

    </CE:Editor>

     

    </EditItemTemplate>

    <InsertItemTemplate>

    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("app_remark") %>'></asp:TextBox>

    </InsertItemTemplate>

    <ItemTemplate>

    <asp:Label ID="Label1" runat="server" Text='<%# Bind("app_remark") %>'></asp:Label>

    </ItemTemplate>

    </asp:TemplateField>

    <asp:BoundField DataField="app_remark2" HeaderText="app_remark2" SortExpression="app_remark2" />

    <asp:BoundField DataField="app_createdby_user_id" HeaderText="app_createdby_user_id"

    SortExpression="app_createdby_user_id" />

    <asp:BoundField DataField="app_created_date" HeaderText="app_created_date" SortExpression="app_created_date" />

    <asp:BoundField DataField="evt_id" HeaderText="evt_id" SortExpression="evt_id" />

    <asp:BoundField DataField="crs_id" HeaderText="crs_id" SortExpression="crs_id" />

    </Fields>

    </asp:DetailsView>

    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:testdbConnectionString %>"

    SelectCommand="SELECT * FROM [tbl_application] WHERE ([app_id] = @app_id)">

    <SelectParameters>

    <asp:Parameter DefaultValue="5" Name="app_id" Type="Decimal" />

    </SelectParameters>

    </asp:SqlDataSource>

    </div>

    </form>

    </body>

    </html>

     
View Complete Thread