protected void BtnApplyShipFilterClick(object sender, EventArgs e)
{
try
{
txtErr.Text = "This is line #1\r\n";
txtErr.Text = "ships are loaded sucessfully\r\n";
//txtErr.Text = "First line\r\nSecond line";
}
catch (Exception ex)
{
throw ex;
}
}
I dont see "This is line #1" in my txtErr box. I get the update progress control that keeps spinning the wheel and it does not go away
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UpdateProgress.ascx.cs"
Inherits="User_Controls_GenericControls_UpdateProgress" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<script type="text/javascript">
var ModalProgress = '<%= ModalProgress.ClientID %>';
Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginReq);
function beginReq(sender, args) {
// shows the Popup
debugger;
$find(ModalProgress).show();
}
</script>
<asp:Panel ID="panelUpdateProgress" runat="server" CssClass="updateProgress" style="display:none">
<asp:UpdateProgress ID="UpdateProg1" DisplayAfter="0" runat="server">
<ProgressTemplate>
<div style="position: relative; top: 30%; text-align: center;">
<img src="../Images/progress.gif" style="vertical-align: middle" alt="Processing" />
Processing ...
</div>
</ProgressTemplate>
</asp:UpdateProgress>
</asp:Panel>
<asp:ModalPopupExtender ID="ModalProgress" runat="server" TargetControlID="panelUpdateProgress"
BackgroundCssClass="modalBackground" PopupControlID="panelUpdateProgress" />