text length excess alert

Last post 08-30-2010, 10:44 AM by Eric. 1 replies.
Sort Posts: Previous Next
  •  08-30-2010, 5:02 AM 63721

    text length excess alert

    I've set  MaxTextLength="1000" in CuteEditor
    I've tried to use in ASP.NET, the alert of the text limitation appear.
     
    But if I use it in ASP, the excess alert did not appear.
    How can it work in ASP?
  •  08-30-2010, 10:44 AM 63727 in reply to 63721

    Re: text length excess alert

    Dear surrounding,
     
    Please try the following code, I have tested it and it works fine on my end: 
    <!-- #include file = "cuteeditor_files/include_CuteEditor.asp" -->
    <html> 
        <head>  
     </head>
        <body>  
      <form name="theForm" action="Edithtml.asp?postback=true"  method="post">
      <%      
       Dim editor
       Set editor = New CuteEditor
       editor.ID = "Editor1"  
       editor.MaxTextLength=25
       If request.QueryString("postback") <> "true" then
        editor.Draw()
       else
        editor.SaveFile("document.html")
        editor.Draw()
       End if
                
       ' Request.Form(ID) access from other page
      %>      
      </form>
     </body>
    </html>
    Thanks for asking
View as RSS news feed in XML