[CLOSED] ReadOnly=true

  1. #1

    [CLOSED] ReadOnly=true

    hi...
    some times i'll not get value of txtValue field in code behind..if i remove readonly then it will come..but i dont want to remove readonly...How to solve this?




    
    <form id="form1" runat="server">
         <ext:ResourceManager ID="ResourceManager1" runat="server" />
    
    
          <ext:NumberField ID="NumberField1" runat="server" Width="100"  >
        </ext:NumberField>
        <ext:NumberField ID="txtValue" runat="server" Width="100" 
                                    AllowNegative="false" ReadOnly="true" >
        </ext:NumberField>
    
        
    
        <ext:Button ID="btnInsert" runat="server" Text="Insert">
            
                                    <DirectEvents>
                                        <Click OnEvent="btnInsert_Click"  />
                               </DirectEvents>
                                </ext:Button>
        </form>
    
    
    protected void btnInsert_Click(object sender, DirectEventArgs e)
            {
                txtValue.Text = NumberField1.Text;
            }
    Last edited by Daniil; Apr 15, 2011 at 12:09 PM. Reason: [CLOSED]
  2. #2
    Hi,

    According W3C standard, browsers don't submit readonly input fields. DirectEvent/DirectMethod by default submits readonly fields but if use postback (or another mechanism for submit then readonly fields will not be submitable)

Similar Threads

  1. [CLOSED] Combobox readonly
    By gidi in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Feb 29, 2012, 3:22 PM
  2. [CLOSED] Calendar - readOnly ??
    By ndotis in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: May 18, 2011, 8:01 PM
  3. [CLOSED] [1.0] Checkbox ReadOnly
    By klaus.schwarz in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 16, 2010, 11:07 AM
  4. Replies: 0
    Last Post: May 04, 2010, 7:08 AM
  5. Replies: 0
    Last Post: Sep 04, 2009, 3:23 PM

Posting Permissions