[CLOSED] i cant take ckeditor value

  1. #1

    [CLOSED] i cant take ckeditor value

    <%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!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 runat="server">
        <title></title>
         
    </head>
    <body>
        <form id="form1" runat="server">
       <ext:ResourceManager ID="ResourceManager1" runat="server">
            </ext:ResourceManager>
            <ext:Viewport ID="Viewport1" runat="server" Layout="Fit">
                <Items>
                    <ext:Panel ID="Panel1" runat="server" Border="false" AutoScroll="true">
                        <TopBar>
                            <ext:Toolbar ID="Toolbar1" runat="server">
                                <Items>
                                </Items>
                            </ext:Toolbar>
                        </TopBar>
                        <Content>
    
                            <CKEditor:CKEditorControl ID="CKEditor1" runat="server" Width="600" Height="400" ></CKEditor:CKEditorControl>
                            <ext:Label ID="Label" runat="server" />
                            <ext:Button ID="Button1" runat="server" Text="sasdas">
                                <DirectEvents>
                                    <Click OnEvent="Unnamed_Event" />
                                </DirectEvents>
                            </ext:Button>
    
                        </Content>
    
                    </ext:Panel>
                </Items>
            </ext:Viewport>
        </form>
    </body>
    </html>
    
    
        Protected Sub Unnamed_Event()
            Label.Html = CKEditor1.Text
            Ext.Net.X.MessageBox.Alert("", CKEditor1.Text).Show()
        End Sub
    Code not working.when i wrote text to ckeditor,i cant take ckeditor value
    i need your help
    thanks
    Last edited by Daniil; Dec 18, 2012 at 3:46 AM. Reason: [CLOSED]
  2. #2
    Hi @canbay,

    I don't think CKEditor suppors our DirectEvents.

    Can you see its value in the POST?
  3. #3
    Don't you need the DirectEventArgs param in the DirectEvent handler?

    I'm not sure what the signature is in VB, but in C# it should look like this:

    protected void Unnamed_Event(object sender, DirectEventArgs e)
    {
        // do something
    }
    Hope this helps.
    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] How to integrate CKEditor for ASP.NET with Ext.NET component
    By Daly_AF in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Oct 18, 2012, 12:40 PM
  2. Replies: 1
    Last Post: Jul 15, 2011, 12:40 AM

Posting Permissions