Hi there,
on a form I'm placing a user control on a CallbackPanel. An additional button is used to raise a CallbackMultiplexer's via hte JavaScript function 'Klicker' (Masterpage involved, Multiplexer needed beacuse there are several Panels)
Part of the aspx code:
(JavaScript:)
function Klicker(param)
{
if(param=='MitarbeiterAusgewaehlt')
{
__sfctl00_ActionContent_CallbackMultiplexerPersonal38.callback(param);
}
}
The code-behind-eventhandler:
protected void CallbackMultiplexerPersonal38_Callback(object sender, Syncfusion.Web.UI.WebControls.CallbackEventArgs e)
{
if (e.CallbackArgument == "MitarbeiterAusgewaehlt")
{
// here my trouble starts
}
}
So far, everything works fine, the event gets raised and the eventhandler catches it. But: The user is supposed to enter some Values into the UserControl ('EditCtlMitarbeiterWahl'). An it's these values that I have to access in the eventhandler (where // 'my trouble starts').
My considerations: The event is raised on the client side, the eventArg consists of a string signaling what exact control is to be evaluated. But how can I manage to access the control's data from the server?
I tried to get the User control via
ControlCollection ctls = PanelMitarbeiterAuswahl.Controls;
int index = ctls.IndexOf(EditCtlMitarbeiterWahl);
ASP.controls_editcontrol_ascx editMAWahl = (ASP.controls_editcontrol_ascx)ctls[index];
but the resulting control (editMAWahl) does not carry the user input.
Any clues for this problem? Of course I tried to help myself with reading the documentation of the CallbackPanel. Interestingly, I found nothing; Intellisense tells me that my Callback Panel is a 'Syncfusion.Web.UI.WebControls.Tools.CallbackPanel', but in the documentation there is no 'CallbackPanel' member in the given namespace...?
Thanks in advance and greetings,
Juergen Kaphengst