Re: Control does not exist in the current context error in VS 2008

  •  05-25-2011, 9:53 AM

    Re: Control does not exist in the current context error in VS 2008

    Dear jtreuting,
     
    Did you "Add Reference" to CuteEditor.dll? 
    Please save the following example to test.aspx, and then run this example, can you reproduce this issue?
     
    <%@ Page Language="C#"%>
    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html>
        <head>
      <title>ASP and ASP.NET WYSIWYG Editor - Edit Static Html Example </title> 
     </head>
     <body>
            <form id="Form1" runat="server">   
            <CE:Editor id="Editor1" runat="server" ></CE:Editor><BR>
            <asp:Button id="btnUpdate" onclick="Submit" Runat="server" Text="Submit"></asp:Button><br />   
         <asp:textbox id="textbox1" runat="server" TextMode="MultiLine" Height="250px" Width="750px" Font-Name="Arial"></asp:TextBox> 
      </form>
     </body>
    </html>
    <script runat="server">
     void Page_Load(object sender, System.EventArgs e)
     {       
     }
     public void Submit(object sender, System.EventArgs e)
     {   
       textbox1.Text = Editor1.PlainText; 
     }
    </script>
     
    Thanks for asking
View Complete Thread