ObjectDataSource -- loading CuteEditor from a SQL DataSource

Last post 10-09-2008, 7:27 PM by jfeeney. 1 replies.
Sort Posts: Previous Next
  •  10-09-2008, 6:25 PM 44751

    ObjectDataSource -- loading CuteEditor from a SQL DataSource

     
    I have created a DAL (Data Access Layer) and a BLL (Business Logic Layer) for a very simple database that has 1 table called T_Pages. T_Pages has two columns - PageNameID and HTML.
     
    I have a very simple webform. I have configured the datasource for ObjectDataSource1 to the BLL. This generated the code that is within the ObjectDataSource area.
     
    I feel that I need to try and bind the data from the HTML field to the text area of CuteEditor. But this is not working. Can someone give me some advice
    Thanks

    <body>

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

    <div>

    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"

    DeleteMethod="Delete" InsertMethod="Insert"

    OldValuesParameterFormatString="original_{0}" SelectMethod="GetPageNameID"

    TypeName="cmsDALTableAdapters.T_PagesTableAdapter" UpdateMethod="Update">

    <DeleteParameters>

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

    </DeleteParameters>

    <UpdateParameters>

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

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

    </UpdateParameters>

    <SelectParameters>

    <asp:Parameter DefaultValue="FirstTestCMS" Name="PageNameID" Type="String" />

    </SelectParameters>

    <InsertParameters>

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

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

    </InsertParameters>

    </asp:ObjectDataSource>

     

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

    </CE:Editor>

    </div>

    </form>

    </body>

  •  10-09-2008, 7:27 PM 44753 in reply to 44751

    Re: ObjectDataSource -- loading CuteEditor from a SQL DataSource

    The above code does work. I didn't have the dll and the "CuteSoft_Client/CuteEditor" folder properly copied over to my test program.
     
     
View as RSS news feed in XML