woot, pretty much that did the job
Now, i'm facing a couple of new issues
When the job is done, i have on my dialog a Ok btn to close the dialog
Code: HTML/ASPX
<eo:Dialog ID="Dialog1" runat="server" CssClass="REPORTE" BackColor="White" Height="50px" Width="200px" HeaderHtml ="Exportación en Proceso" BorderStyle ="Solid"
BackShadeColor="Orange" ShadowDepth="3" AcceptButton="btnOk" ClientSideOnCancel="OnDialogCancel" ClientSideOnAccept="OnDialogAccept">
<HeaderStyleActive CssClass="REPORTE_HeaderStyle"></HeaderStyleActive>
<ContentStyleActive CssClass="REPORTE_RowStyle"></ContentStyleActive>
<ContentTemplate>
<div id="divProgreso" style="text-align:center;"></div>
<eo:ProgressBar ID="ProgressBar1" runat="server" ShowPercentage="True" IndicatorImage="00060104"
BackgroundImageRight="00060103" ControlSkinID="None" BackgroundImage="00060101" IndicatorIncrement="7" ClientSideOnTaskDone="exportacionTerminada"
BackgroundImageLeft="00060102" Width="150px" StartTaskButton="btnImportar" OnRunTask="ProgressBar1_RunTask" ClientSideOnValueChanged="OnProgress">
</eo:ProgressBar><br />
</ContentTemplate>
<FooterStyleActive CssClass="REPORTE_FooterStyle"/>
<FooterTemplate>
<div style="text-align:center">
<asp:Button ID="btnOk" runat="server" Text="OK"
Enabled="False" UseSubmitBehavior="false"/>
</div>
</FooterTemplate>
</eo:Dialog>
I had set the button to be the DailogAcceptButton, but to prevent the user form clicking the button before the process is finished, i disabled the button, so when the process is done, my function "exportacionTerminada" launches
Code: JavaScript
function exportacionTerminada()
{
var btn = document.getElementById("<%=btnOk.ClientID%>");
btn.disabled = false;
}
but the buttons stay disabled, any idea???