The value of the control is always empty if this control contains in the tab panel

  1. #1

    The value of the control is always empty if this control contains in the tab panel

    I've a tab panel.

    tab = tabPanel.add({
                        id: id,
                        title: title,
                        closable: true,
                        autoLoad: {
                            showMask: true,
                            url: url,
                            mode: "iframe",
                            maskMsg: "Loading... " + title + "..."
                        }
                    });

    It contains some controls and the button.
     <ext:TextField ID="test1" runat="server">
        </ext:TextField>
    
    <ext:Button runat="server" ID="SubmitTxt" Text="Save">
        <DirectEvents>
            <Click OnEvent="SubmitBtnClick">
                <EventMask ShowMask="true"></EventMask>
    </Click>
        </DirectEvents>
    </ext:Button>

    The property Text of test1 is always empty.
     protected void SubmitBtnClick(object sender, DirectEventArgs e) {
    var a  = test1.Text; //a == string.Empty
    }

    Why? How to fix it?
  2. #2
    Please ensure you have those Components configured inside a <form runat="server"> Control.
    Geoffrey McGill
    Founder
  3. #3
    There is here
    <ext:TextField runat="server" FieldLabel="LastName" ID="LastNameTxt" />
    <ext:TextField runat="server" FieldLabel="FirstName" ID="FirstNameTxt" />

Similar Threads

  1. Replies: 7
    Last Post: Jan 29, 2013, 11:59 AM
  2. [CLOSED] The control with ID 'ext-empty-store' not found
    By supera in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 31, 2012, 12:16 PM
  3. Replies: 6
    Last Post: Dec 07, 2011, 12:55 PM
  4. Replies: 8
    Last Post: Jan 25, 2011, 4:21 AM
  5. Replies: 4
    Last Post: Feb 23, 2010, 7:38 AM

Posting Permissions