Apr 05, 2011, 5:48 AM
Problems with DirectEvents
Hi, I am making an ajax call to a method of server from my aspx page. In the server method is called correctly, but does not update the values of other controls such as control "txtTest. " This update is performed on the server method.
To use the DirectEvents ajax call in the button's Click event
As I can solve this problem?
FAFNER!!!
To use the DirectEvents ajax call in the button's Click event
As I can solve this problem?
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test02.aspx.cs" Inherits="Devesof.Erp.Web.UI.Modules.Test02" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!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>
<ext:ResourceManager ID="ResourceManager1" runat="server">
</ext:ResourceManager>
<form id="form1" runat="server">
<asp:TextBox ID="txtTest" runat="server" Text=""></asp:TextBox>
<br />
<ext:Button ID="btnTest" runat="server" Text="Click me" >
<DirectEvents AutoDataBind="true">
<Click OnEvent="btnTest_Click">
<EventMask MinDelay="500" ShowMask="true" Msg="Processing ..." />
</Click>
</DirectEvents>
</ext:Button>
</form>
</body>
</html>
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnTest_Click(object sender, DirectEventArgs e)
{
txtTest.Text = "Method Ok!!!";
}
ThanksFAFNER!!!