I have Default.cs file with Default.aspx.cs file. Where I implemented rules_abort_execution_button with OnClick and OnServerClick methods. Both functions are implemented in Default.cs
UI button: Default.aspx.cs
<div id="rules_execution_dialog" runat="server" class="theme-border">
<div id="rules_execution_dialog_drag_control" title="Drag me">
<img id="rules_execution_dialog_maximize_button" src="./Resources/Theme/Images/maximize.png" alt="Maximize" title="Maximize" />
<br style="clear: both" />
</div>
<div style="margin-top: 10px">
<input class="btn" id="rules_execute_close_button" type="button" value="Close" disabled="disabled" onclick=" dialogClosed($('rules_execution_dialog')) " style="float: right; min-width: 0px; width: 70px;" />
<input class="btn" id="rules_abort_execution_button" type="button" value="Abort execution" runat="server" OnClick="abort_click" OnServerClick="btn_Abort_Click" style="float: right; min-width: 0px; width: 90px;" />
<br style="clear: both" />
</div>
</div>
My Default.cs
with both functions:
protected void btn_Abort_Click(object sender, EventArgs e)
{
var IamHere = "";
return;
}
protected void abort_click(object sender, EventArgs e)
{
var test = "";
return;
}
When I am executing Soap client method from another file Download.cs
to get a data it takes quite long , so I would like to add abort button which could allow abort execution. But unfortunately while fetching data from third part client my UI do not response to my UI click button methods. I tried various examples and I didnt found solution.