Fill up Templates via Database (ASP)

Last post 12-20-2005, 2:10 PM by rcroeder. 1 replies.
Sort Posts: Previous Next
  •  12-20-2005, 6:08 AM 14055

    Fill up Templates via Database (ASP)

    i hope you can help me to solve the problem... 

    i load the Editor and on start the editors opens directly a template file and dislays it..
    now my problem :-))

    is it possible that the template is a asp page ?
    could the asp-page be connected to a database ? at start up the template should be filled up dynamically with some content...

    i tried different ways.... but nothing worked...

    the editor accepts *.asp templates... but the asp code is not executed... you can see all written code in the source code of the editor page :-(

    sorry for my bad english :-))

     
     
  •  12-20-2005, 2:10 PM 14068 in reply to 14055

    Re: Fill up Templates via Database (ASP)

    Hi,
     
    You cannot execute asp code that has been written in the editor. ASP "compiles" the page prior to execution, that is, it is done doing what in needs to do before it gets around to looking at what is being pulled from the database. If you want to execute code from the editor you will need to do it in JavaScript.

    If you are just trying to fill a page with content from a database, that is fairly easy to do, even fill the editor with text from a database. You could setup the editor to edit the entire page, then save it back out, but if that code has asp code within it, I would not suggest editing it with CuteEdit.
     
    RC
     
    p.s. Maybe someone else as an idea or I am not understand the question
View as RSS news feed in XML