Editor1_HTMLContent Not Working ???

Last post 06-01-2009, 12:45 PM by renman. 2 replies.
Sort Posts: Previous Next
  •  05-30-2009, 12:47 PM 52661

    Editor1_HTMLContent Not Working ???

    Can anyone devise why this page:
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head>
        <title>Untitled Page</title>
        <!-- #include file = "../CuteEditor_Files/include_CuteEditor.asp" -->
    </head>
    <body>
    <form name="frmUpdatePage" method="POST" action="admin_update_page.asp">
        <input type=hidden name="PageID" value="<%=PageID%>" />
        <input type=hidden name="PageName" value="<%=PageName%>" />
        <b><%=PageName%></b>
        <br />
        <%                            
            Dim editor
            Set editor = New CuteEditor
            editor.ID = "Editor1"
            editor.Text = "TEST"
            editor.FilesPath = "../CuteEditor_Files"
            editor.MaxImageSize = 50
            editor.AutoConfigure = "Simple"
            editor.Width = 740
            editor.Height = 500
            editor.Draw()
        %>
    </form>
    <input type=submit value=" UPDATE PAGE DATA " onclick="frmUpdatePage.submit();"/>
    </body>
    </html>


    Would not properly pass the content of the editor to this page?



    <%
    PageID = request.Form("PageID")
    PageName = request.Form("PageName")
    PageCopy = Request.Form("Editor1_HTMLContent")
    response.Write "PAGE ID = " & PageID & "<BR><BR>"
    response.Write "PAGE NAME = " & PageName & "<BR><BR>"
    response.Write "PAGE COPY = " & PageCopy & "<BR><BR>"
    response.End
    %>

    The editors content is not being passed as a part of the form collection and I cannot for the life of me figure out why?
     
    Thanks for your help in advance.....R


    Filed under:
  •  06-01-2009, 12:06 PM 52705 in reply to 52661

    Re: Editor1_HTMLContent Not Working ???

    Replace PageCopy = Request.Form("Editor1_HTMLContent") with the following code:
     
    PageCopy = Request.Form("Editor1")

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  06-01-2009, 12:45 PM 52706 in reply to 52705

    Re: Editor1_HTMLContent Not Working ???

    Thank you Adam.....R
View as RSS news feed in XML