Hi!
I want to create a page with a modeless dialog, after the user click on a button. Additional I need to change a Text attribute of a Label, when the dialog will be shown.
Background:
I show a grid, where the user can check or uncheck some elements and when the user clicks the button "continue", the dialog with a progressbar and the label should be shown. The label should give the user information of his selections made before.
For this reason, I add a CallbackPanel with the button as a trigger. In the "ClientSideAfterExecute" I call the script with the modeless show of the dialog and in the "CallbackPanel1_Execute" I change the Text of the Label.
Code: JavaScript
function OnCallbackExecute ()
{
eo_GetObject("DownDialog").show(false);
}
and
Code: C#
protected void CallbackPanel1_Execute(object sender, EO.Web.CallbackEventArgs e)
{
if (e.Parameter.ToString() == "Start")
{
LDownquestion.Text = "Are you sure?";
}
else if (e.Parameter.ToString() == "TaskDone")
{
}
}
When I put the dialog outside of the CallbackPanel, the debugger shows at runtime, that the text attribute was changed, but in the browser, the label.text is the same, as on design-time.
Code: HTML/ASPX
<eo:CallbackPanel ID="CallbackPanel1" runat="server" Height="1px" Width="1px"
Triggers="{ControlID:BDownload;Parameter:Start}"
ClientSideBeforeExecute="" ClientSideAfterExecute="OnCallbackExecute"
onexecute="CallbackPanel1_Execute">
</eo:CallbackPanel>
<eo:Dialog ID="DownDialog" runat="server" BackColor="White"
...
When I put the dialog inside of the CallbackPanel, eo_GetObject won't be able to find the dialog any more.
Code: HTML/ASPX
<eo:CallbackPanel ID="CallbackPanel1" runat="server" Height="1px" Width="1px"
Triggers="{ControlID:BDownload;Parameter:Start}"
ClientSideBeforeExecute="" ClientSideAfterExecute="OnCallbackExecute"
onexecute="CallbackPanel1_Execute">
<eo:Dialog ID="DownDialog" runat="server" BackColor="White"
...
eo:CallbackPanel>
Is my attempt wrong? Is there a easier way to come to the same solution?
Many thanks
Ronald