Re: How do I display a value (text) in the editor on page load? I'm a newbie...please help!

  •  05-18-2009, 3:03 PM

    Re: How do I display a value (text) in the editor on page load? I'm a newbie...please help!

    Brett,
     
    I think the above code is not ASP.NET. It's written in PHP.
     
    Here is a simple example showing you how to set CuteEditor Text.
     
    1. <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>  
    2. <%@ Page language="c#"%>  
    3. <html>  
    4.     <head>  
    5.     </head>  
    6.     <body>  
    7.         <form id="Form1" method="post" runat="server">  
    8.             <CE:EDITOR id="Editor1" Autoconfigure="Simple" runat="server"></CE:EDITOR>  
    9.         </form>  
    10.     </body>  
    11. </html>  
    12.   
    13. <script runat="server">  
    14.     void Page_Load(object sender, System.EventArgs e)   
    15.      {   
    16.         if (IsPostBack)    
    17.         {    
    18.         }    
    19.         else    
    20.         {      
    21.             Editor1.Text = "Set Text Here";   
    22.         }    
    23.        
    24.     }   
    25. </script>  

    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

View Complete Thread