Feb 17, 2010, 7:27 AM
[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:
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