Hi bala_pragasam,
Cute Editor is a server control, properties ID can not be binding, if you want to bing the text, tye the example below
- <%@ Page Language="C#" AutoEventWireup="True" Debug="true" %>
-
- <%@ Import Namespace="System.Data" %>
- <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>
- <html>
-
- <script runat="server">
-
- ICollection CreateDataSource()
- {
- DataTable dt = new DataTable();
- DataRow dr;
- dt.Columns.Add(new DataColumn("StringValue", typeof(String)));
- for (int i = 0; i < 2; i++)
- {
- dr = dt.NewRow();
- dr[0] = "Description for item " + i.ToString();
- dt.Rows.Add(dr);
- }
- DataView dv = new DataView(dt);
- return dv;
- }
- void Page_Load(Object sender, EventArgs e)
- {
- if (!IsPostBack)
- {
- ItemsList.DataSource = CreateDataSource();
- ItemsList.DataBind();
- }
- }
-
- </script>
-
- <body>
- <form id="Form1" runat="server">
- <h3>
- Example</h3>
- <asp:DataList ID="ItemsList" runat="server">
- <ItemTemplate>
- <CE:Editor ID="editor1" runat="server" Text='<%# Eval("StringValue") %>'>
- </CE:Editor>
- </ItemTemplate>
- </asp:DataList>
- </form>
- </body>
- </html>
Regards,
ken