[CLOSED] Change text property on button

  1. #1

    [CLOSED] Change text property on button

    Hi
    I'm trying to change the .text property on a button that has its onClick event in a AjaxEvents tag. But the property change does not reflect on the web page. Why does not this work?
    Im using 0.6 of Coolite
    protected void Button1_Click(object sender, AjaxEventArgs e)
    {
    
    
        Button1.Text = "New label";
    
    
    }
    
    
    <ext:Button ID="Button1" runat="server" Icon="Key">
        <AjaxEvents>
            <Click OnEvent="Button1_Click"></Click>    
        </AjaxEvents>
    </ext:Button>
    Best regards
    Mikael Jürke
    Last edited by geoffrey.mcgill; Apr 04, 2012 at 10:20 PM.
  2. #2

    RE: [CLOSED] Change text property on button

    Hi Mikael,

    This bug was fixed today and changes in SVN now. If you have no SVN access then you can apply next work around (until you will have new version of Toolkit)

    protected void Button1_Click(object sender, AjaxEventArgs e)
    {
        Button1.SetText("New label");
    }
    Last edited by geoffrey.mcgill; Feb 10, 2016 at 3:58 AM.
  3. #3

    RE: [CLOSED] Change text property on button

    Thank you, that solved it! How do I get SVN access?

    Best regards
    Mikael J�rke
    Last edited by geoffrey.mcgill; Feb 10, 2016 at 3:58 AM.
  4. #4

    RE: [CLOSED] Change text property on button

    The SVN Access currently only available for Professional Edition license holders.

    please see http://www.ext.net/store/
    Last edited by geoffrey.mcgill; Feb 10, 2016 at 3:58 AM.
  5. #5

    setText is inaccessible due to protection level

    Last edited by geoffrey.mcgill; Feb 10, 2016 at 3:57 AM.

Similar Threads

  1. Replies: 1
    Last Post: Jul 17, 2012, 5:53 PM
  2. [CLOSED] How to change text color in Ext Button
    By UnifyEducation in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 25, 2012, 1:42 PM
  3. Replies: 1
    Last Post: Apr 15, 2010, 2:29 AM
  4. Replies: 1
    Last Post: Jul 20, 2009, 6:44 AM
  5. [CLOSED] MultiSelect and text items with comma in Text property
    By tdracz in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 15, 2009, 2:30 PM

Posting Permissions