How to use Cute ASP with my Scripts for Updating a Database

  •  10-27-2006, 7:19 AM

    How to use Cute ASP with my Scripts for Updating a Database

    Does someone know how to "Replace Textareas" with Cute so that the Same Parameters will handshake with Update Scripts...

    Have a Script that Update my Textarea with Parameter Name and Value. But the Parameter in Cute is Editor.Text. So I can See my Record in Cute perfectly but my update Script does not react on Editor.Text. I do not want to change my update script as I have other field in the same Page.

    Please help and see:
    http://begusch.testsystem.at/housing/editor/default1.asp (with explanations)

    Here is the Code (without explanations)
    <!-- #INCLUDE VIRTUAL="/housing/config/include/utils.runtime6.asp" -->
    <!-- #INCLUDE VIRTUAL="/housing/config/include/ado.runtime6.asp" -->
    <!-- #INCLUDE VIRTUAL="/housing/editor/CuteEditor_Files/include_CuteEditor.asp" -->

    <html>
     
    <head>
    <link rel="stylesheet" href="asp.css"  type="text/css" />
    <%'GoLive Content Source
    set News = ADORecordSet("database" , "select * from news", "block=1", "id", "News")%>
    </head>

    <body>

    <form name="theForm" action='../config/actions/ado.actions6.asp?<%=URLArgs()%>' method="post">

    <br>
    <textarea name='d01[<%=News.AbsolutePosition%>]' rows="4" cols="40"><%=News.Value("d01")%></textarea>
    <br>

    <% Dim editor

    Set editor = New CuteEditor
    editor.ID = "Editor1"
    editor.Text = News.Value("d01")
    editor.FilesPath = "CuteEditor_Files"
    editor.EditorBodyStyle = "font:normal 12px arial;"
    editor.EditorWysiwygModeCss = "asp.css"
    editor.Draw()
    ' Request.Form(ID) access from other page %>
    </p>

    <input type="submit" name="$SubmitChanges" value="Update" <%SetupADOUpdate "$return", "$return", News%>></p>
    <% SetupADOForm News %>

    </form>
    </body>
    </html>

    <% if 0 then %><!-- Mock Content
       "News/d01" text {}
       "News/d01" html {TEXT}
    --><% end if %>

View Complete Thread