Hello,
i have a callbackpanel (id="cbp_global") in my test page...who is in a masterpage...
i have a usercontrol in my test page
i have a callbackpanel in my usercontrol...
the callback of the usercontrol is fired, but i have this message :
the callback on '....name of de usercontrol' has failed, because the server did not recognize thsi callback and processed it as a normal requestand the panel is not refreshed..
the usercontrol is trigered by this :"this.btsave.Attributes.Add("onClick", "javascript:eo_Callback('cbp_formulaire','save');");" because this :
Triggers="{ControlID:btsave;Parameter:save}" doesn't work on my userontrol...
Did someone have a solution, i'm blocked since a fiew days...
thanks,
My test page
Quote:
<%@ Page Language="C#" MasterPageFile="~/Client.master" EnableEventValidation="true" Trace="true" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="sadesys._Pages_Test" Title="sadesys" %>
<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
<%@ Register TagPrefix="uc0" TagName="tn_client" Src="../Formulaires/Client/CLient.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<eo:CallbackPanel id="cbp_global" runat="server" Width="703px">
<uc0:tn_client ID="formulaire" runat="server" />
</eo:CallbackPanel>
</asp:Content>
My Client.ascx
Quote:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Client.ascx.cs" Inherits="sadesys.Formulaires_Client.Client" %>
<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
<eo:CallbackPanel id="cbp_formulaire" Triggers="{ControlID:btsave;Parameter:save}" runat="server" Width="703px">
<asp:Panel ID="P_formulaire" runat="server">
<table border="0" width="703px">
<tr>
<td><asp:Label ID="lblRAISOC" runat ="server" CssClass="label" EnableViewState="true" Text="Raison Sociale"></asp:Label></td>
<td ><asp:TextBox ID="txtRAISOC" runat="server" EnableViewState="true" CssClass="input200"></asp:TextBox></td>
</tr>
</table>
<table border="0" width="703px">
<tr>
<td><asp:Label ID="lblMESSAGE" runat ="server" CssClass="message" EnableViewState="true" Text="Message de retour"></asp:Label></td>
<td width="30px"><asp:Image id="btsave" AlternateText="Enregistrer" Width="22px" Height="22px" runat="server" ImageUrl="~/Images/b_save.gif"/></td>
</tr>
</table>
</asp:Panel>
</div>
</eo:CallbackPanel>
my code in Client.ascx
Quote:
private void Page_Init(object sender, System.EventArgs e)
{
this.btsave.Attributes.Add("onClick", "javascript:eo_Callback('cbp_formulaire','save');");
this.cbp_formulaire.Execute += new EO.Web.CallbackEventHandler(this.cbp_formulaire_Execute);
}
private void cbp_formulaire_Execute(object sender, EO.Web.CallbackEventArgs e)
{
//something to do
}