DirectEvent on Button - Content Not allowed?

  1. #1

    DirectEvent on Button - Content Not allowed?

    I just started with a new project - 1.0 - all controls work and render fine - when I tried adding a direct event - I get a weird message that says that "content is not allowed between an opening and closing directevet tag" - see image - beyond resource manager - there is nothing on my page - besides this button Click image for larger version. 

Name:	example.png 
Views:	32 
Size:	12.7 KB 
ID:	3891
    Last edited by geoffrey.mcgill; Mar 05, 2012 at 10:00 PM.
  2. #2

    The code you have posted appears correct.

    Do you have the correct @Register statement on the Page,

    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    Maybe a restart of Visual Studio could help.
    Geoffrey McGill
  3. #3
    Does the following sample Page work if you copy+paste directly into your Project?


    <%@ Page Language="C#" %>
    <%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>
    <script runat="server">
        protected void Button1_Click(object sender, DirectEventArgs e)
            X.Msg.Notify("Message", this.TextField1.Text).Show();
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    <html xmlns="">
    <head runat="server">
        <title>Ext.NET Example</title>
        <form runat="server">
            <ext:ResourceManager runat="server" />
                    <ext:TextField ID="TextField1" runat="server" FieldLabel="Item 1" />
                    <ext:Button runat="server" Text="Submit" OnDirectClick="Button1_Click" />
    Geoffrey McGill
  4. #4
    I'm with the same problem.

    Copy/Paste not worked.

    Can you help me?

    thank you

Similar Threads

  1. Replies: 5
    Last Post: Mar 19, 2014, 3:35 AM
  2. Update Controls and Content during a DirectEvent
    By HosseinHelali in forum 1.x Help
    Replies: 1
    Last Post: Jul 12, 2011, 10:15 AM
  3. [CLOSED] Adding a button directevent in a directevent method
    By ogokgol in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 31, 2011, 10:29 AM
  4. [CLOSED] How to update panel content during directevent
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Oct 06, 2010, 1:32 PM
  5. Button in the GridView Header not allowed
    By lordofthexings in forum 1.x Help
    Replies: 2
    Last Post: Jun 08, 2010, 9:40 PM

Posting Permissions