Control error Asp.Net 2.0

Last post 10-08-2007, 3:55 PM by jsmorse. 13 replies.
Sort Posts: Previous Next
  •  04-06-2006, 2:23 PM 17951

    Control error Asp.Net 2.0

       Hi,
    I'm using the <ce:editor> in an Insert template of the detailsView in asp.net 2.0. I'm using VWD as the ide and I'm using Masterpages. It works, but in design mode, I receive this error on the control after adding the editor.. and can no longer see the form.
     
    "There was an error rendering the control. Exception has been thrown by the target of the invocation."
     
    Note the form still works and I can insert data into the database.
     
    Here is the code:
     
     

    <InsertItemTemplate>

    <ce:Editor id = "Question" EditorWysiwygModeCss="../example.css" TemplateItemList="Bold,Italic,Underline" Height=150 Width=200 ShowBottomBar="false" Text='<%# Bind("Question") %>' runat = "Server"></CE:Editor></InsertItemTemplate>
     
    Any help would be appreciated.
  •  04-06-2006, 7:30 PM 17962 in reply to 17951

    Re: Control error Asp.Net 2.0

    robertcampbell,
     
    Are you using the version 5.2?
     
    Have you checked the following link?
     
    Adding CuteEditor to Visual Studio 2005 Express Edition Toolbox
     
    Hope it helps.
     
    Keep me posted
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  04-11-2006, 11:31 AM 18105 in reply to 17962

    Re: Control error Asp.Net 2.0

    Hi,
    Sorry for the delay in response. Yes, I am using 5.2. No, I had not added the control to the toolbox.
     
    I have done so now, but the error is still there.
     
    I deleted the editor from the DetailView and the error went away and I could see the DetailView in the Desginer. I then added the edititor by dragging the control to the InsertTemplate on the DetailView.
     
    As soon as I do that the error returns displays the message...
     
     
    NOTE: By accident, I just found out that it does not generate the error when used in the EditTemplate, only when used in the InsertTemplate.
     
    Thanks,
    Bob
     
     
  •  04-11-2006, 4:12 PM 18114 in reply to 18105

    Re: Control error Asp.Net 2.0

    Bob,
     
    When error happens, can you switch to HTML view, copy the code and paste it to here?
     
     
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  04-19-2006, 12:18 PM 18347 in reply to 18114

    Re: Control error Asp.Net 2.0

    Sorry for the delay. Here is the source...
     
    <%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="insertQuestion.aspx.vb" Inherits="insertQuestionAnswer" title="Commercial User Support" %>

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

     

    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <atlas:ScriptManager ID="ScriptManager1" EnablePartialRendering="true" runat="server" />

     

     

    &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;

    <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataKeyNames="QuestionID"

    DataSourceID="SqlDataSourceQuestions" DefaultMode="Insert" Height="50px" Style="position: static"

    Width="500px" CellPadding="3" EnableViewState="False">

    <Fields>

    <asp:TemplateField HeaderText="System Name" SortExpression="SystemName">

    <EditItemTemplate>

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

    </EditItemTemplate>

    <InsertItemTemplate>

    &nbsp;<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="False" DataSourceID="ObjectDataSourceSystemName"

    SelectedValue='<%# Bind("SystemName") %>'

    Style="position: static" DataTextField="SystemName" DataValueField="SystemName">

    </asp:DropDownList>

    </InsertItemTemplate>

    <ItemTemplate>

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

    </ItemTemplate>

    </asp:TemplateField>

    <asp:BoundField DataField="FirstName" HeaderText="First Name" SortExpression="FirstName" />

    <asp:BoundField DataField="LastName" HeaderText="Last Name" SortExpression="LastName" />

    <asp:BoundField DataField="telephone" HeaderText="Telephone" SortExpression="telephone" />

    <asp:BoundField DataField="Email" HeaderText="Email" NullDisplayText="True" SortExpression="Email" />

    <asp:BoundField DataField="QuestionID" HeaderText="QuestionID" InsertVisible="False"

    ReadOnly="True" SortExpression="QuestionID" Visible="False" />

    <asp:TemplateField HeaderText="Caller Type" SortExpression="CallerType">

    <EditItemTemplate>

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

    </EditItemTemplate>

    <InsertItemTemplate>

     

    <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="False" DataSourceID="SqlDataSourceCallerType"

    DataTextField="CallerType" DataValueField="CallerType" SelectedValue='<%# Bind("CallerType") %>'

    Style="position: static">

    </asp:DropDownList>

    </InsertItemTemplate>

    <ItemTemplate>

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

    </ItemTemplate>

    </asp:TemplateField>

    <asp:TemplateField HeaderText="Group Name" SortExpression="GroupName">

    <EditItemTemplate>

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

    </EditItemTemplate>

    <InsertItemTemplate>

    <asp:DropDownList ID="DropDownList3" runat="server" AutoPostBack="False" DataSourceID="SqlDataSourceGroupName"

    DataTextField="GroupName" DataValueField="GroupName" SelectedValue='<%# Bind("GroupName") %>'

    Style="position: static">

    </asp:DropDownList>

    </InsertItemTemplate>

    <ItemTemplate>

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

    </ItemTemplate>

    </asp:TemplateField>

    <asp:TemplateField HeaderText="Question Type" SortExpression="QuestionType">

    <EditItemTemplate>

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

    </EditItemTemplate>

    <InsertItemTemplate>

    &nbsp;<asp:DropDownList ID="DropDownList4" runat="server" AutoPostBack="False" DataSourceID="SqlDataSourceQuestionType"

    DataTextField="QuestionType" DataValueField="QuestionType" SelectedValue='<%# Bind("QuestionType") %>'

    Style="position: static">

    </asp:DropDownList>

    </InsertItemTemplate>

    <ItemTemplate>

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

    </ItemTemplate>

    </asp:TemplateField>

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

    <EditItemTemplate>

     

    <br />

    </EditItemTemplate>

    <InsertItemTemplate>

    <ce:Editor id = "Question" AllowPasteHtml="true" EditorWysiwygModeCss="example.css" TemplateItemList="Bold,Italic,Underline" Height=80 Width=450 ShowBottomBar="false" Text='<%# Bind("Question") %>' runat = "Server">

    </CE:Editor>

     

     

     

     

     

     

    </InsertItemTemplate>

    <ItemTemplate>

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

    </ItemTemplate>

    </asp:TemplateField>

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

    <EditItemTemplate>

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

    </EditItemTemplate>

    <InsertItemTemplate>

    <ce:Editor id = "Answer" AllowPasteHtml="true" EditorWysiwygModeCss="example.css" Height=80 Width=450 ShowBottomBar="false" Text='<%# Bind("Answer") %>' runat="Server" ThemeType="Office2003_BlueTheme" AutoConfigure="Simple"></CE:Editor>

     

    </InsertItemTemplate>

    <ItemTemplate>

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

    </ItemTemplate>

    </asp:TemplateField>

    <asp:BoundField DataField="ExistingQuestionID" HeaderText="ExistingQuestionID" InsertVisible="False"

    SortExpression="ExistingQuestionID" Visible="False" />

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

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

    <asp:BoundField DataField="ActionRequired" HeaderText="Action Required" SortExpression="ActionRequired" >

    <ControlStyle Width="300px" />

    <ItemStyle Width="300px" />

    </asp:BoundField>

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

    <EditItemTemplate>

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

    </EditItemTemplate>

    <InsertItemTemplate>

    <ce:Editor id = "Comments" AllowPasteHtml="true" EditorWysiwygModeCss="example.css" TemplateItemList="Bold,Italic,Underline" Height=80 Width=450 ShowBottomBar="false" Text='<%# Bind("Comments") %>' runat = "Server">

    </CE:Editor> </InsertItemTemplate>

    <ItemTemplate>

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

    </ItemTemplate>

    </asp:TemplateField>

    <asp:BoundField DataField="SupportPerson" HeaderText="SupportPerson" SortExpression="SupportPerson"

    Visible="False" />

    <asp:CommandField ShowInsertButton="True" ButtonType="Button" >

    <ItemStyle Font-Size="Small" HorizontalAlign="Right" />

    </asp:CommandField>

    <asp:BoundField DataField="dateEntered" HeaderText="dateEntered" InsertVisible="False"

    SortExpression="dateEntered" />

    </Fields>

    </asp:DetailsView>

     

     

     

     

    &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;

    <asp:SqlDataSource ID="SqlDataSourceQuestionType" runat="server" ConnectionString="<%$ ConnectionStrings:CLASupportConnectionString %>"

    SelectCommand="SELECT DISTINCT [QuestionType] FROM [QuestionType]"></asp:SqlDataSource>

     

    <asp:SqlDataSource ID="SqlDataSourceQuestions" runat="server" ConnectionString="<%$ ConnectionStrings:CLASupportConnectionString %>"

    DeleteCommand="DELETE FROM [Questions] WHERE [QuestionID] = @QuestionID" InsertCommand="INSERT INTO [Questions] ([CallerType], [QuestionType], [SystemName], [ExistingQuestionID], [Question], [Answer], [Status], [FirstName], [LastName], [Email], [ActionRequired], [Comments], [SupportPerson], [GroupName], [Hudson], [dateEntered], [telephone]) VALUES (@CallerType, @QuestionType, @SystemName, @ExistingQuestionID, @Question, @Answer, @Status, @FirstName, @LastName, @Email, @ActionRequired, @Comments, @SupportPerson, @GroupName, @Hudson, Current_TimeStamp, @telephone)"

    SelectCommand="SELECT * FROM [Questions]" UpdateCommand="UPDATE [Questions] SET [CallerType] = @CallerType, [QuestionType] = @QuestionType, [SystemName] = @SystemName, [ExistingQuestionID] = @ExistingQuestionID, [Question] = @Question, [Answer] = @Answer, [Status] = @Status, [FirstName] = @FirstName, [LastName] = @LastName, [Email] = @Email, [ActionRequired] = @ActionRequired, [Comments] = @Comments, [SupportPerson] = @SupportPerson, [GroupName] = @GroupName, [Hudson] = @Hudson, [dateEntered] = @dateEntered, [telephone] = @telephone WHERE [QuestionID] = @QuestionID">

    <DeleteParameters>

    <asp:Parameter Name="QuestionID" Type="Int32" />

    </DeleteParameters>

    <UpdateParameters>

    <asp:Parameter Name="CallerType" Type="String" />

    <asp:Parameter Name="QuestionType" Type="String" />

    <asp:Parameter Name="SystemName" Type="String" />

    <asp:Parameter Name="ExistingQuestionID" Type="Int32" />

    <asp:Parameter Name="Question" Type="String" />

    <asp:Parameter Name="Answer" Type="String" />

    <asp:Parameter Name="Status" Type="Boolean" />

    <asp:Parameter Name="FirstName" Type="String" />

    <asp:Parameter Name="LastName" Type="String" />

    <asp:Parameter Name="Email" Type="String" />

    <asp:Parameter Name="ActionRequired" Type="String" />

    <asp:Parameter Name="Comments" Type="String" />

    <asp:Parameter Name="SupportPerson" Type="String" />

    <asp:Parameter Name="GroupName" Type="String" />

    <asp:Parameter Name="Hudson" Type="Boolean" />

    <asp:Parameter Name="dateEntered" Type="DateTime" />

    <asp:Parameter Name="telephone" Type="String" />

    <asp:Parameter Name="QuestionID" Type="Int32" />

    </UpdateParameters>

    <InsertParameters>

    <asp:Parameter Name="CallerType" Type="String" />

    <asp:Parameter Name="QuestionType" Type="String" />

    <asp:Parameter Name="SystemName" Type="String" />

    <asp:Parameter Name="ExistingQuestionID" Type="Int32" />

    <asp:Parameter Name="Question" Type="String" />

    <asp:Parameter Name="Answer" Type="String" />

    <asp:Parameter Name="Status" Type="Boolean" />

    <asp:Parameter Name="FirstName" Type="String" />

    <asp:Parameter Name="LastName" Type="String" />

    <asp:Parameter Name="Email" Type="String" />

    <asp:Parameter Name="ActionRequired" Type="String" />

    <asp:Parameter Name="Comments" Type="String" />

    <asp:Parameter Name="SupportPerson" Type="String" />

    <asp:Parameter Name="GroupName" Type="String" />

    <asp:Parameter Name="Hudson" Type="Boolean" />

    <asp:Parameter Name="dateEntered" Type="DateTime" />

    <asp:Parameter Name="telephone" Type="String" />

    </InsertParameters>

    </asp:SqlDataSource>

     

     

     

     

    <asp:SqlDataSource ID="SqlDataSourceCallerType" runat="server" ConnectionString="<%$ ConnectionStrings:CLASupportConnectionString %>"

    DeleteCommand="DELETE FROM [CallerType] WHERE [CallerType] = @CallerType" InsertCommand="INSERT INTO [CallerType] ([CallerType]) VALUES (@CallerType)"

    SelectCommand="SELECT [CallerType] FROM [CallerType]">

    <DeleteParameters>

    <asp:Parameter Name="CallerType" Type="String" />

    </DeleteParameters>

    <InsertParameters>

    <asp:Parameter Name="CallerType" Type="String" />

    </InsertParameters>

    </asp:SqlDataSource>

    &nbsp;&nbsp;

    <asp:SqlDataSource ID="SqlDataSourceGroupName" runat="server" ConnectionString="<%$ ConnectionStrings:CLASupportConnectionString %>"

    SelectCommand="SELECT DISTINCT [GroupName] FROM [Group]"></asp:SqlDataSource>

    <asp:ObjectDataSource ID="ObjectDataSourceSystemName" runat="server" OldValuesParameterFormatString="original_{0}"

    SelectMethod="GetSystemName" TypeName="CLASupportTableAdapters.SystemNameTableAdapter">

    </asp:ObjectDataSource>

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

    DeleteCommand="DELETE FROM [Questions] WHERE [QuestionID] = @QuestionID" InsertCommand="INSERT INTO [Questions] ([CallerType], [QuestionType], [SystemName], [ExistingQuestionID], [Question], [Answer], [Status], [FirstName], [LastName], [Email], [ActionRequired], [Comments], [SupportPerson], [GroupName], [Hudson], [dateEntered], [telephone]) VALUES (@CallerType, @QuestionType, @SystemName, @ExistingQuestionID, @Question, @Answer, @Status, @FirstName, @LastName, @Email, @ActionRequired, @Comments, @SupportPerson, @GroupName, @Hudson, @dateEntered, @telephone)"

    SelectCommand="SELECT * FROM [Questions]" UpdateCommand="UPDATE [Questions] SET [CallerType] = @CallerType, [QuestionType] = @QuestionType, [SystemName] = @SystemName, [ExistingQuestionID] = @ExistingQuestionID, [Question] = @Question, [Answer] = @Answer, [Status] = @Status, [FirstName] = @FirstName, [LastName] = @LastName, [Email] = @Email, [ActionRequired] = @ActionRequired, [Comments] = @Comments, [SupportPerson] = @SupportPerson, [GroupName] = @GroupName, [Hudson] = @Hudson, [dateEntered] = @dateEntered, [telephone] = @telephone WHERE [QuestionID] = @QuestionID">

    <DeleteParameters>

    <asp:Parameter Name="QuestionID" Type="Int32" />

    </DeleteParameters>

    <UpdateParameters>

    <asp:Parameter Name="CallerType" Type="String" />

    <asp:Parameter Name="QuestionType" Type="String" />

    <asp:Parameter Name="SystemName" Type="String" />

    <asp:Parameter Name="ExistingQuestionID" Type="Int32" />

    <asp:Parameter Name="Question" Type="String" />

    <asp:Parameter Name="Answer" Type="String" />

    <asp:Parameter Name="Status" Type="Boolean" />

    <asp:Parameter Name="FirstName" Type="String" />

    <asp:Parameter Name="LastName" Type="String" />

    <asp:Parameter Name="Email" Type="String" />

    <asp:Parameter Name="ActionRequired" Type="String" />

    <asp:Parameter Name="Comments" Type="String" />

    <asp:Parameter Name="SupportPerson" Type="String" />

    <asp:Parameter Name="GroupName" Type="String" />

    <asp:Parameter Name="Hudson" Type="Boolean" />

    <asp:Parameter Name="dateEntered" Type="DateTime" />

    <asp:Parameter Name="telephone" Type="String" />

    <asp:Parameter Name="QuestionID" Type="Int32" />

    </UpdateParameters>

    <InsertParameters>

    <asp:Parameter Name="CallerType" Type="String" />

    <asp:Parameter Name="QuestionType" Type="String" />

    <asp:Parameter Name="SystemName" Type="String" />

    <asp:Parameter Name="ExistingQuestionID" Type="Int32" />

    <asp:Parameter Name="Question" Type="String" />

    <asp:Parameter Name="Answer" Type="String" />

    <asp:Parameter Name="Status" Type="Boolean" />

    <asp:Parameter Name="FirstName" Type="String" />

    <asp:Parameter Name="LastName" Type="String" />

    <asp:Parameter Name="Email" Type="String" />

    <asp:Parameter Name="ActionRequired" Type="String" />

    <asp:Parameter Name="Comments" Type="String" />

    <asp:Parameter Name="SupportPerson" Type="String" />

    <asp:Parameter Name="GroupName" Type="String" />

    <asp:Parameter Name="Hudson" Type="Boolean" />

    <asp:Parameter Name="dateEntered" Type="DateTime" />

    <asp:Parameter Name="telephone" Type="String" />

    </InsertParameters>

    </asp:SqlDataSource>

    <br />

     

     

    <script type="text/xml-script">

    <page xmlns:script="http://schemas.microsoft.com/xml-script/2005">

    <references>

    </references>

    <components>

    </components>

    </page>

    </script>

    </asp:Content>

     

  •  12-18-2006, 11:31 PM 25215 in reply to 18347

    Re: Control error Asp.Net 2.0

    I am experiencing the same problem.  The error appears when I change the DefaultMode property of the DetailsView control from "Read" to "Insert".  If I replace the CuteSoft control with a standard texbox the error goes away.  Any suggestions?  I'm using VWD.
  •  01-08-2007, 9:25 PM 25640 in reply to 18114

    Re: Control error Asp.Net 2.0

    I am also getting the Error: "There was an error rendering the control. Exception has been thrown by the target of an invocation."
     
    I downloaded the trial version yesterday. All worked fine then even after rebooting my box a fews times.  Today error appeared in three different pages, of which only one had been edited since yesterday.  My problem is in the initial display. I am using the control in the Edit Template section of a FormView. Once I switch to 'Edit Templates' mode in VWD and select the Edit Template, the form and CE control appears as normal.  The error appears to show up only when the FormView is in a non-edit template mode, i.e. the default mode when a page is loaded. 
     
     FYI, I installed IE7 and other windows updates in the last 24 hours.  Could that be the problem?
     
    VWD Express 8.0.50727.42  NET 2.0.50727
     
    Love the product and hope to purchase it if this can be resolved.
     
    Thanks,
    Ken Spring MCSP
     
     
  •  02-07-2007, 7:53 PM 26518 in reply to 25640

    Re: Control error Asp.Net 2.0

    I am getting the same error on a details view in edit mode.  I am using MS Visual Studio Professional.  Has a solution been found for this problem?

    The relevant source code looks something like this:

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

    ~~~~~~~~~~~~~~~~~~

                    <asp:TemplateField HeaderText="Content:" SortExpression="Content">
                        <EditItemTemplate>
                            <CE:Editor ID="ceContent" runat="server" AutoConfigure="Simple" AutoParseClasses="True"
                                CodeViewTemplateItemList="Save,Print,Cut,Copy,Paste,Find,ToFullPage,FromFullPage,SelectAll,SelectNone"
                                MaxHTMLLength="0" MaxTextLength="0" Text='<%# Bind("Content") %>' Width="600px" BreakElement="P">
                                <FrameStyle BackColor="White" BorderColor="#DDDDDD" BorderStyle="Solid" BorderWidth="1px"
                                    CssClass="CuteEditorFrame" Height="100%" Width="100%" />
                            </CE:Editor>
                        </EditItemTemplate>
                        <HeaderStyle VerticalAlign="Top" />
                    </asp:TemplateField>

  •  04-14-2007, 1:18 AM 28346 in reply to 26518

    Re: Control error Asp.Net 2.0

    guys,

    Version 6.0 is out.  This issue is resolved in this new release.
     
    It's a free upgrade.
     
    Demo:

    http://cutesoft.net/example/general.aspx

    Download:

    http://cutesoft.net/downloads/default.aspx


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  10-08-2007, 2:34 PM 34105 in reply to 28346

    Re: Control error Asp.Net 2.0

    I did the upgrade and still get the same error. ??? Do I need to do more than put the DLL in the bin folder?
  •  10-08-2007, 2:35 PM 34106 in reply to 34105

    Re: Control error Asp.Net 2.0

    You need to update all the client files as well.

    Can you tell me what kind of error message you got?
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  10-08-2007, 3:10 PM 34109 in reply to 34106

    Re: Control error Asp.Net 2.0

    I get the following error:
     
    There was an error rendering the control. Exception thrown by the target of an invocation.
     
    The error seems to be related to the FormView in which the editor is embedded (edit template). It happens when I switch the FormView default mode to edit.
     
    This is the third time I've tried to reply -- hope I make it in this time!
  •  10-08-2007, 3:23 PM 34113 in reply to 34109

    Re: Control error Asp.Net 2.0

    jormorse,
     
    In the download package, there is an example: http://cutesoft.net/example/datagrid-example.aspx
     
    Can you try it on your localhost? If it works, please create a very simple example with access DB and send it to me.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  10-08-2007, 3:55 PM 34116 in reply to 34113

    Re: Control error Asp.Net 2.0

    I couldn't get the application to work, but maybe my file structure is to complicated. Here's the asp code I'm using that doesn't work:
     

    <%@ Page Language="VB" MasterPageFile="~/ReportingApplication/EditMaster.master" AutoEventWireup="false" CodeFile="accomplish.aspx.vb" Inherits="ReportingApplication_StateProject_accomplish" title="Edit Accomplishments - CYFAR" %>

    <%@ MasterType VirtualPath="~/ReportingApplication/EditMaster.master" %>

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

    <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <h1>

    accomplishments</h1>

    <asp:Panel ID="confirmpanel" runat="server" Height="24px" Width="545px">

    <p class="confirmation"> <asp:Label ID="ConfirmLabel" runat="server" Text="Your changes have been accepted."

    Width="327px" ></asp:Label></p>

    </asp:Panel>

    <asp:FormView ID="FormView1" runat="server" DefaultMode="Edit" DataKeyNames="SPID" DataSourceID="SqlDataSource1">

    <EditItemTemplate>

    <asp:ValidationSummary ID="ValidationSummary1" runat="server" HeaderText="You need to correct the following error(s):"

    Width="533px" Height="25px" CssClass="error" DisplayMode="List" />

    <CE:Editor id="accomplishTextBox" runat="server" Text='<%# Bind("Topic1") %>' Width="400px" AutoConfigure="Minimal" EditorWysiwygModeCss="~/ReportingApplication/css/screen.css">

    <FrameStyle BackColor="White" BorderColor="#DDDDDD" BorderStyle="Solid" BorderWidth="1px"

    CssClass="CuteEditorFrame" Height="100%" Width="100%" />

    </CE:Editor>

    <br />

    <br />

    <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update"

    Text="submit" CssClass="standard_button" OnClick="UpdateButton_Click"></asp:LinkButton>

    <asp:Label ID="ProjectTypeID" runat="server" Text='<%# Bind("ProjectTypeID") %>' Visible="false"></asp:Label>

    <asp:Label ID="q1" runat="server" Text='<%# Bind("Q1") %>' Visible="false"></asp:Label>

    <asp:Label ID="q2" runat="server" Text='<%# Bind("Q2") %>' Visible="false"></asp:Label>

    <asp:Label ID="q3" runat="server" Text='<%# Bind("Q3") %>' Visible="false"></asp:Label>

    <asp:Label ID="q4" runat="server" Text='<%# Bind("Q4") %>' Visible="false"></asp:Label>

    </EditItemTemplate>

    </asp:FormView>

    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:CYFARData %>" SelectCommand="SelectStateAccomplish" UpdateCommand="UpdateStateAccomplish" SelectCommandType="StoredProcedure" UpdateCommandType="StoredProcedure">

    <SelectParameters>

    <asp:SessionParameter DefaultValue="1350" Name="SPID" SessionField="ProjectID" Type="Int32" />

    </SelectParameters>

    <UpdateParameters>

    <asp:Parameter Name="SPID" Type="Int32" />

    <asp:Parameter Name="Topic1" Type="String" />

    <asp:Parameter Name="Q1" Type="String" />

    <asp:Parameter Name="Q2" Type="String" />

    <asp:Parameter Name="Q3" Type="String" />

    <asp:Parameter Name="Q4" Type="String" />

    <asp:Parameter Name="ProjectTypeID" Type="String" />

    </UpdateParameters>

    </asp:SqlDataSource>

    </asp:Content>

     

     

     

View as RSS news feed in XML