Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8228077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:20:45+00:00 2026-06-07T16:20:45+00:00

I have an order entry page that can take a little while to process,

  • 0

I have an order entry page that can take a little while to process, and users think that the browser has frozen and the close it. This is a pop up browser, when the cmdAdd button is clicked the items from the text boxes are written to the database, the child window is closed and the parent is refreshed to see the changes. This is currently working fine.

I added an AJAX UpdateProgress to give the user some feedback, but now the cmdAdd browser does not close and the parent does not update. The progress indicator shows, and the database is updated, but thats it. Any ideas?

Note: The UpdateProgress indicator is used elsewhere in the site, without problems, it is just when I use it in the pop-up child window. The cmdAdd_click works properly without the updateProgress control (child is closed, parent is refreshed)

ASPX:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="orderHistory.aspx.cs" Inherits="JWeb.orderHistory" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<!DOCTYPE html>
<html>
    <head id="Head1" runat="server">
        <title>JWebUtils - Order History Sheet</title>
        <link href="App_Themes/Theme/Styles.css" rel="stylesheet" type="text/css" />
        <link href="cssUpdateProgress.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <script type="text/javascript">
            var ModalProgress = '<%= ModalProgress.ClientID %>';         
        </script>
        <DIV style="width: 700px; vertical-align: top; border-collapse: collapse;" class="pageBody">
            <form id="Form1" method="post" runat="server">
                <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                </asp:ToolkitScriptManager>
                <script type="text/javascript" src="jsUpdateProgress.js"></script>
                <asp:Panel ID="panelUpdateProgress" runat="server" CssClass="updateProgress">
                    <asp:UpdateProgress ID="UpdateProg1" DisplayAfter="0" runat="server">
                        <ProgressTemplate>
                            <div style="position: relative; top: 30%; text-align: center; vertical-align: middle;">
                                <img src="images/loading.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" />
<%--                <asp:button id="cmdAdd" tabIndex="5" runat="server" Width="95px" cssClass="dg_buttons" Text="Add to Order" onclick="cmdAdd_Click"></asp:button>
--%>                <asp:UpdatePanel ID="pnlUpdate" runat="server">
                    <ContentTemplate>
                        <TABLE id="Table1" style="WIDTH: 100%;">
                            <TR>
                                <TD class="pageHeader" colspan="2">
                                    <asp:label id="lblTitle" runat="server" Font-Names="Arial" Font-Bold="True">Order History Sheet</asp:label>
                                </TD>
                            </TR>
                            <TR>
                                <TD vertical-align: top;" style="width: 220px;">
                                    <asp:button id="cmdAdd" tabIndex="5" runat="server" Width="95px" 
                                        cssClass="dg_buttons" Text="Add to Order" onclick="cmdAdd_Click"></asp:button>&nbsp;
                                    <asp:button id="cmdClose" tabIndex="5" runat="server" Width="50px" Text="Close" 
                                        CssClass="dg_buttons" onclientclick="window.close(); return false;"></asp:button>&nbsp;
                                    <asp:button id="cmdPrint" tabIndex="5" runat="server" Width="50px" Text="Print" 
                                        CssClass="dg_buttons" CausesValidation="False" UseSubmitBehavior="False"></asp:button>
                                </TD>
                                <TD vertical-align: top;" style="text-align: right; width: 480px;">
                                    <asp:Label ID="lblCustomerName" runat="server"></asp:Label>
                                </TD>
                            </TR>
                            <TR>
                                <TD vertical-align: top;" style="vertical-align: top" colspan="2">
                                    &nbsp;<span class="style1">* Qty Bought is total items purchased in the last 12 
                                    months from the current date </span>
                                    <table style="WIDTH: 100%; vertical-align: top;">
                                        <TR>
                                            <TD colspan="2">
                                                <asp:label id="lblMessage" runat="server" Font-Names="Arial" Font-Size="Small" Width="525px" ForeColor="Red"></asp:label>
                                            </TD>
                                        </TR>
                                        <TR>
                                            <TD colspan="2">
                                                <div class="mGrid">
                                                    << GRIDVIEW OMITTED FOR BEREVITY >>
                                                </div>
                                            </TD>
                                        </TR>
                                    </table>
                                </TD>
                            </TR>
                        </TABLE>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </form>
        </DIV>
        <script type="text/javascript" src="jsUpdateProgress.js"></script>
    </body>
</html>

cmdAdd_Click:

    protected void cmdAdd_Click(object sender, EventArgs e)
    {
        string qty = null;
        string itemCode = null;
        int orderID = Convert.ToInt32((Session["OrderID"]));
        int seqNum = 0;
        int orderSeqNum = 0;
        string description = null;
        JWebUtils.priceType pricing = default(JWebUtils.priceType);
        double price = 0;
        string type = null;
        ArrayList sqlParams = new ArrayList();
        JWebDB db = new JWebDB();
        System.Text.StringBuilder script = new System.Text.StringBuilder();
        int discount = 0;
        string strDisc = null;
        JWebUtils jweb = new JWebUtils();

        << CODE TO UPDATE DB OMITTED FOR BEREVITY >>

        script.Append("<script language=\"javascript\">");
        script.Append("window.opener.document.forms[0].submit();self.close();");
        script.Append("</script>");

        Session["IsPopup"] = true;

        ClientScript.RegisterStartupScript(this.GetType(), "XYZ", script.ToString());
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T16:20:47+00:00Added an answer on June 7, 2026 at 4:20 pm

    First you should add a ScriptManager to your page and then should use :

    ScriptManager.RegisterStartupScript(...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a project that requires the process of order entry. An order will
I would like to get some nested params. I have an Order that has
I have an order entry page and a corresponding ViewModel (simplified example): public class
I have an order form with about 30 text fields that contain numerical values.
Let's say I have an Order table which has a FirstSalesPersonId field and a
I have next tables Order , Transaction , Payment . Class Order has some
I have a table named users and each row (user) has an image. The
I have a show/hide Jquery function in place on a multi-entry page which toggles
I have a problem that has been a thorn in my side for nearly
I have a Entry model which has a Pushes field and I want each

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.