Hi acer152,
please try this example:
------------------------------------------->
<%@ Page Language="VB" %>
<%@ Import Namespace="System.Data" %>
<%@ Register Namespace="CuteEditor" Assembly="CuteEditor" TagPrefix="CE" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
Private Function CreateDataSource() As ICollection
Dim dt As New DataTable()
Dim dr As DataRow
dt.Columns.Add(New DataColumn("StringValue", GetType([String])))
For i As Integer = 0 To 1
dr = dt.NewRow()
dr(0) = "test" & i
dt.Rows.Add(dr)
Next
Dim dv As New DataView(dt)
Return dv
End Function
Private Sub Page_Load(ByVal sender As [Object], ByVal e As EventArgs)
ItemsList.DataSource = CreateDataSource()
ItemsList.DataBind()
End Sub
Protected Sub ItemsList_ItemDataBound(ByVal sender As Object, ByVal e As DataListItemEventArgs)
Dim editor1 As Editor = DirectCast(e.Item.FindControl("editor1"), Editor)
editor1.Setting("security:ImageGalleryPath") = "~/yourFolder"
editor1.Setting("security:ImageBrowserPath") = "~/yourFolder"
editor1.Setting("security:MediaGalleryPath") = "~/yourFolder"
editor1.Setting("security:ImageGalleryPath") = "~/yourFolder"
editor1.Setting("security:FlashGalleryPath") = "~/yourFolder"
End Sub
</script>
<html xmlns="
http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:Button ID="button1" runat="server" Text="PostBack" />
<asp:DataList ID="ItemsList" runat="server" OnItemDataBound="ItemsList_ItemDataBound">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "StringValue") %>
<CE:Editor ID="editor1" runat="server">
</CE:Editor>
</ItemTemplate>
</asp:DataList>
</form>
</body>
</html>
------------------------------------------------->
Regards,
Ken