Access Database as source for Editor Problems

Last post 07-20-2006, 9:56 PM by [email protected]. 1 replies.
Sort Posts: Previous Next
  •  07-20-2006, 9:49 PM 21148

    Access Database as source for Editor Problems

    Hi, evaluating your cuteEditor for ASP.NET and trying to use an Access Database and writing code in VB, in the following code I'm getting the error "Name AccessFileStorage" is not declared.  What am I missing here?  do I need to build a provider for this or something ?  any help appreciated.  Paul
     

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

       Editor1.Setting("CuteEditorFileStorageType") = Type.GetType(AccessFileStorage).AssemblyQualifiedName

       Editor1.Setting("AccessFile") = Server.MapPath("database.mdb")

       Editor1.Setting("DownFile") = ResolveUrl("DownFile.Aspx")

       Editor1.SetSecurityGalleryPath("/images/loaded/")

    End Sub

     
     
  •  07-20-2006, 9:56 PM 21149 in reply to 21148

    Re: Access Database as source for Editor Problems

    don't you hate that - just worked it out.
     
    need
     

    Imports System.Data

    Imports System.Data.OleDb
     
    and change the line
     
    Editor1.Setting("CuteEditorFileStorageType") = Type.GetType(AccessFileStorage).AssemblyQualifiedName
     
    to
     
    Editor1.Setting("CuteEditorFileStorageType") = Type.GetType("AccessFileStorage").AssemblyQualifiedName
     
    note the "" around AccessFileStorage
     
    In saying this it's not yet tested so I may be back, just no more errors on the Studio.Net 2005 aspx.vb
     
    Paul
View as RSS news feed in XML