Re: can't found "CuteEditor.EditorSetting". (It have exit in version 5.3)

  •  05-07-2007, 11:12 PM

    Re: can't found "CuteEditor.EditorSetting". (It have exit in version 5.3)

    Adam,
     I use CuteEditor.EditorSetting when I want to add image to database. So when I click "image Gallery" in toolbar of CuteEdite. it will call class SqlFileStorage . This class use CuteEditor.EditorSetting. you can see my code vb.net below


    *******************************
    '//<main page>'
    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    .
    .

     With edStory
                    .Setting("CuteEditorFileStorageType") = GetType(SqlFileStorage).AssemblyQualifiedName
                    .Setting("DownFile") = ResolveUrl("~/common/viewfile.aspx")
                    .Setting("ConnectionString") = getWebConfig("SQLConnectionString")
                    .Setting("MailID") = hdnMailIdNews.Value
                    .SetSecurityGalleryPath("/")
                End With
    End Sub

    -------------------------------------------------------------
    '//<class SqlFileStorage>
    Public Class SqlFileStorage
        Inherits CuteEditor.Impl.FileStorage

        Public Shared ConnectionString As String = ""
        Private c As HttpContext
        Private conn As SqlConnection
        Private setting As CuteEditor.EditorSetting
        Private downfile As String

        Public Sub New(ByVal context As HttpContext)
            MyBase.New(context)
            c = context
            setting = CuteEditor.EditorSetting.GetFromContext(c, True)

            downfile = setting("DownFile")
            conn = New SqlConnection
        End Sub
    *******************************

    I try to search SqlFileStorage in this forums. I met this topic have same my code
    http://cutesoft.net/forums/post/11813.aspx
    but it write program by C language . (I write program by Vb.net)

View Complete Thread