[CLOSED] Changing labels on DirectEvents

  1. #1

    [CLOSED] Changing labels on DirectEvents

    I previously often changed a checkbox, radiobutton or normal label's text on the result of a AjaxEvent/DirectEvent call back.

    This now throws a client-side error stating the the label's innerWrap is undefined.

    Is there a new way of doing this?

    Simple example page:

    <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="label.aspx.vb" Inherits="MYPROJECT.label" %>
    
    <!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="ScriptManager1" runat="server" CleanResourceUrl="false" />
        
            <ext:Checkbox ID="chkTest" runat="server" />
            <ext:Button ID="btnTest" runat="server" Text="Change Label">
                <DirectEvents>
                    <Click OnEvent="btnTest_Click" />
                </DirectEvents>
            </ext:Button>
        
    
        </form>
    </body>
    </html>
    Imports Ext.Net
    
    Partial Public Class label
        Inherits System.Web.UI.Page
    
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    
            chkTest.BoxLabel = "Test Label"
    
        End Sub
    
        Public Sub btnTest_Click(ByVal sender As Object, ByVal e As DirectEventArgs)
    
            chkTest.BoxLabel = "New Label"
    
        End Sub
    
    End Class
  2. #2

    RE: [CLOSED] Changing labels on DirectEvents

    Hi,

    Fixed. Please update from SVN
  3. #3

    RE: [CLOSED] Changing labels on DirectEvents

    Wonderful, thank you.

Similar Threads

  1. [CLOSED] css for form element labels
    By GLD in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 23, 2012, 1:49 PM
  2. [CLOSED] [1.0] Notes on Labels
    By danielg in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 19, 2010, 10:48 AM
  3. Editable Labels
    By KCoder in forum 1.x Help
    Replies: 6
    Last Post: Feb 15, 2010, 7:18 AM
  4. Htmlencode and labels - possible bug?
    By plykkegaard in forum 1.x Help
    Replies: 2
    Last Post: Apr 30, 2009, 11:12 AM
  5. [CLOSED] dynamic labels
    By alexp in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 10, 2009, 2:53 PM

Posting Permissions