locked
One remaining issue with updateprogress RRS feed

  • Question

  • User615288127 posted

    I'm using Visual Web Developer 2010 Express with SQL Server 2008 Express, VB.

    I'm having an issue with the code below.  I have two buttons, Button1 and Button2.  Button1 starts the display of the updateprogress display, no problems there.  The problem is with Button2, designed simply so the user can return to the main page.  Although the user does return as expected for some reason the updateprogress image displays for a fraction of a second before the user returns to the main page.  This has no ill effect on the program execution but is visually annoying.

    Is there any way I can stop this from happening?

    aspx code:

    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="AccessHomeUse.aspx.vb" Inherits="AccessHomeUse" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head id="Head1" runat="server">
        <title></title>
    
        <style type="text/css">
            .UpdateProgressContent{
                padding: 20px;
                background-color: #FFFFFF;
                width: 274px;
                text-align: center;
                vertical-align: middle;
                z-index: 1001;
                top: 40%;
                margin-left:100px;
                ;
                margin-right: 0px;
                margin-top: 0px;
                margin-bottom: 0px;
            }
            .UpdateProgressBackground
            {
                margin:0px;
                padding:0px;
                top:0px; bottom:0px; left:0px; right:0px;
                ;
                z-index:1000;
                background-color:#cccccc;
            }
        </style>
    
    </head>
    <body>
        <form id="form1" runat="server">
        <div style="height: 6000px">
            <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="0">
            </asp:ScriptManager>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <legend>
                        <p align="left" style="font-family: 'Arial Black'; font-size: medium">
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Create Access copy for Home use</p>
                        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Generate Home Use Database" />
                        <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="Return to Main" />
                        <br />
                        &nbsp; &lt;Note: This may take several minutes to complete!&gt;<br />&nbsp;<br /><asp:Label 
                            ID="Label15" runat="server" Text="Table" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:Label ID="Label16" runat="server" Text="Records Transferred" 
                            Width="200px"></asp:Label>
                        <br />
                        <asp:Label ID="Label1" runat="server" Text="Capacitors" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label2" runat="server" Text="Connectors" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label3" runat="server" Text="Crystals and Oscillators" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label4" runat="server" Text="Diodes" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label5" runat="server" Text="ICs" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label6" runat="server" Text="Inductors" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label7" runat="server" Text="Misc" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label8" runat="server" Text="Relays" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox8" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label9" runat="server" Text="Resistors" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox9" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label10" runat="server" Text="Switches" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox10" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label11" runat="server" Text="Transformers" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox11" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label12" runat="server" Text="Transistors" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox12" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label13" runat="server" Text="TMPPRTS" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox13" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label14" runat="server" Text="CIS Manufacturer Parts" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox14" runat="server"></asp:TextBox>
                        <br />
                        <br />
                        <asp:Label ID="Label17" runat="server" Text="Total Records Transferred" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox15" runat="server"></asp:TextBox>
                        <br />
                        <br /><asp:UpdateProgress ID="UpdateProgress1" runat="server" DisplayAfter="0" AssociatedUpdatePanelID="UpdatePanel1">
                            <ProgressTemplate>
                                <script type="text/javascript">
                                    document.write("<div class='UpdateProgressBackground'></div>");</script>
                                <center><div class="UpdateProgressContent"                                    
                                        style="border-width: 1px; border-style: double; background-color: #FFFFFF; font-weight: bold; left: 572px; height: 29px;">
                                    Transfer to MS-Access in process...
                                <asp:Image id="CapWait" runat="server" ImageUrl="~/Images/progress.gif"/>
                                </div></center>
                            </ProgressTemplate>
                        </asp:UpdateProgress>
                        <br />
                        </legend>
                </ContentTemplate>
            </asp:UpdatePanel>
            <br /> 
        </div>
        </form>
    </body>
    </html>

    vb code for Button2:

        Protected Sub Button2_Click(sender As Object, e As System.EventArgs) Handles Button2.Click
            Response.Redirect("Main.aspx")
        End Sub

    Thanks!

    Wednesday, August 26, 2015 12:05 AM

Answers

  • User2103319870 posted

    Bulldog248

    The problem is with Button2, designed simply so the user can return to the main page.  Although the user does return as expected for some reason the updateprogress image displays for a fraction of a second before the user returns to the main page.  This has no ill effect on the program execution but is visually annoying.

    Is there any way I can stop this from happening?

    if possible try moving the Button2 which used to return to main page outside of UpdatePanel 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, August 26, 2015 12:17 AM
  • User615288127 posted

    Hi A2H,

    I kept searching and did find a method to allow the UpdateProgress image to show.  It involved script.  The completed aspx code is below:

    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="AccessHomeUse.aspx.vb" Inherits="AccessHomeUse" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head id="Head1" runat="server">
        <title></title>
    
        <style type="text/css">
            .UpdateProgressContent{
                padding: 20px;
                background-color: #FFFFFF;
                width: 274px;
                text-align: center;
                vertical-align: middle;
                z-index: 1001;
                top: 40%;
                margin-left:100px;
                ;
                margin-right: 0px;
                margin-top: 0px;
                margin-bottom: 0px;
            }
            .UpdateProgressBackground
            {
                margin:0px;
                padding:0px;
                top:0px; bottom:0px; left:0px; right:0px;
                ;
                z-index:1000;
                background-color:#cccccc;
            }
        </style>
    
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="0">
            </asp:ScriptManager>
                    <script language="javascript" type="text/javascript">
            <!--
                        var prm = Sys.WebForms.PageRequestManager.getInstance();
                        function CancelAsyncPostBack() {
                            if (prm.get_isInAsyncPostBack()) {
                                prm.abortPostBack();
                            }
                        }
                        prm.add_initializeRequest(InitializeRequest);
                        prm.add_endRequest(EndRequest);
                        var postBackElement;
                        function InitializeRequest(sender, args) {
                            if (prm.get_isInAsyncPostBack()) {
                                args.set_cancel(true);
                            }
                            postBackElement = args.get_postBackElement();
                            if (postBackElement.id == 'Button1') {
                                $get('UpdateProgress1').style.display = 'block';
                            }
                        }
                        function EndRequest(sender, args) {
                            if (postBackElement.id == 'Button1') {
                                $get('UpdateProgress1').style.display = 'none';
                            }
                        }
            // -->
            </script>
                <p style="font-family: 'Arial Black'; font-size: medium; font-weight: bold; font-style: normal">
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Create Access copy for Home use</p>
                        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" 
                            Text="Generate Home Use Database" />
                        <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" 
                            Text="Return to Main" />
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <legend>                   
                        <br />
                        &nbsp; &lt;Note: This may take several minutes to complete!&gt;<br />&nbsp;<br /><asp:Label 
                            ID="Label15" runat="server" Text="Table" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:Label ID="Label16" runat="server" Text="Records Transferred" 
                            Width="200px"></asp:Label>
                        <br />
                        <asp:Label ID="Label1" runat="server" Text="Capacitors" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label2" runat="server" Text="Connectors" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label3" runat="server" Text="Crystals and Oscillators" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label4" runat="server" Text="Diodes" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label5" runat="server" Text="ICs" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label6" runat="server" Text="Inductors" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label7" runat="server" Text="Misc" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label8" runat="server" Text="Relays" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox8" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label9" runat="server" Text="Resistors" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox9" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label10" runat="server" Text="Switches" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox10" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label11" runat="server" Text="Transformers" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox11" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label12" runat="server" Text="Transistors" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox12" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label13" runat="server" Text="TMPPRTS" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox13" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label14" runat="server" Text="CIS Manufacturer Parts" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox14" runat="server"></asp:TextBox>
                        <br />
                        <br />
                        <asp:Label ID="Label17" runat="server" Text="Total Records Transferred" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox15" runat="server"></asp:TextBox>
                        <br />
                        <br /><asp:UpdateProgress ID="UpdateProgress1" runat="server" DisplayAfter="0" AssociatedUpdatePanelID="UpdatePanel1">
                            <ProgressTemplate>
    
                                <script type="text/javascript">
                                    document.write("<div class='UpdateProgressBackground'></div>");</script>
                                <center><div class="UpdateProgressContent"                                    
                                        style="border-width: 1px; border-style: double; background-color: #FFFFFF; font-weight: bold; left: 572px; height: 29px;">
                                    Transfer to MS-Access in process...
                                <asp:Image id="CapWait" runat="server" ImageUrl="~/Images/progress.gif"/>
                                </div></center>
    
                            </ProgressTemplate>
                        </asp:UpdateProgress>
                        <br />
                        </legend>
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
                </Triggers>
            </asp:UpdatePanel>
            <br /> 
        </div>
        </form>
    </body>
    </html>

    Thanks for your help!

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, August 26, 2015 9:38 AM

All replies

  • User2103319870 posted

    Bulldog248

    The problem is with Button2, designed simply so the user can return to the main page.  Although the user does return as expected for some reason the updateprogress image displays for a fraction of a second before the user returns to the main page.  This has no ill effect on the program execution but is visually annoying.

    Is there any way I can stop this from happening?

    if possible try moving the Button2 which used to return to main page outside of UpdatePanel 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, August 26, 2015 12:17 AM
  • User615288127 posted

    Hi a2h,

    Moving button2 outside of the UpdatePanel did solve the image display problem on the return to main.  Next, I had to move button1 outside the UpdatePanel to get the ascetics of the page, set the trigger to button1.  Now, the page gives me the expected results but the UpdateProgress image doesn't display at all.

    The revised aspx:

    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="AccessHomeUse.aspx.vb" Inherits="AccessHomeUse" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head id="Head1" runat="server">
        <title></title>
    
        <style type="text/css">
            .UpdateProgressContent{
                padding: 20px;
                background-color: #FFFFFF;
                width: 274px;
                text-align: center;
                vertical-align: middle;
                z-index: 1001;
                top: 40%;
                margin-left:100px;
                ;
                margin-right: 0px;
                margin-top: 0px;
                margin-bottom: 0px;
            }
            .UpdateProgressBackground
            {
                margin:0px;
                padding:0px;
                top:0px; bottom:0px; left:0px; right:0px;
                ;
                z-index:1000;
                background-color:#cccccc;
            }
        </style>
    
    </head>
    <body>
        <form id="form1" runat="server">
        <div style="height: 6000px">
            <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="0">
            </asp:ScriptManager>
            <br />
                        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" 
                            Text="Generate Home Use Database" />
                        <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" 
                            Text="Return to Main" />
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <legend>
                        <p align="left" style="font-family: 'Arial Black'; font-size: medium">
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Create Access copy for Home use</p>
                        <br />
                        &nbsp; &lt;Note: This may take several minutes to complete!&gt;<br />&nbsp;<br /><asp:Label 
                            ID="Label15" runat="server" Text="Table" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:Label ID="Label16" runat="server" Text="Records Transferred" 
                            Width="200px"></asp:Label>
                        <br />
                        <asp:Label ID="Label1" runat="server" Text="Capacitors" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label2" runat="server" Text="Connectors" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label3" runat="server" Text="Crystals and Oscillators" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label4" runat="server" Text="Diodes" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label5" runat="server" Text="ICs" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label6" runat="server" Text="Inductors" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label7" runat="server" Text="Misc" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label8" runat="server" Text="Relays" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox8" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label9" runat="server" Text="Resistors" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox9" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label10" runat="server" Text="Switches" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox10" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label11" runat="server" Text="Transformers" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox11" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label12" runat="server" Text="Transistors" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox12" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label13" runat="server" Text="TMPPRTS" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox13" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label14" runat="server" Text="CIS Manufacturer Parts" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox14" runat="server"></asp:TextBox>
                        <br />
                        <br />
                        <asp:Label ID="Label17" runat="server" Text="Total Records Transferred" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox15" runat="server"></asp:TextBox>
                        <br />
                        <br /><asp:UpdateProgress ID="UpdateProgress1" runat="server" DisplayAfter="0" AssociatedUpdatePanelID="UpdatePanel1">
                            <ProgressTemplate>
                                <script type="text/javascript">
                                    document.write("<div class='UpdateProgressBackground'></div>");</script>
                                <center><div class="UpdateProgressContent"                                    
                                        style="border-width: 1px; border-style: double; background-color: #FFFFFF; font-weight: bold; left: 572px; height: 29px;">
                                    Transfer to MS-Access in process...
                                <asp:Image id="CapWait" runat="server" ImageUrl="~/Images/progress.gif"/>
                                </div></center>
                            </ProgressTemplate>
                        </asp:UpdateProgress>
                        <br />
                        </legend>
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
                </Triggers>
            </asp:UpdatePanel>
            <br /> 
        </div>
        </form>
    </body>
    </html>

    I'm probably missing something small (hopefully), do you know what the problem is?

    Thanks!

    Wednesday, August 26, 2015 8:45 AM
  • User2103319870 posted

    Next, I had to move button1 outside the UpdatePanel to get the ascetics of the page, set the trigger to button1.  Now, the page gives me the expected results but the UpdateProgress image doesn't display at all.

    If you move the Button1 outside of updatepanel then you wont be able to get the UpdateProgress image to show. UpdateProgress will work on control which is inside of the updatepanel associated with it

    Wednesday, August 26, 2015 9:30 AM
  • User615288127 posted

    Hi A2H,

    I kept searching and did find a method to allow the UpdateProgress image to show.  It involved script.  The completed aspx code is below:

    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="AccessHomeUse.aspx.vb" Inherits="AccessHomeUse" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head id="Head1" runat="server">
        <title></title>
    
        <style type="text/css">
            .UpdateProgressContent{
                padding: 20px;
                background-color: #FFFFFF;
                width: 274px;
                text-align: center;
                vertical-align: middle;
                z-index: 1001;
                top: 40%;
                margin-left:100px;
                ;
                margin-right: 0px;
                margin-top: 0px;
                margin-bottom: 0px;
            }
            .UpdateProgressBackground
            {
                margin:0px;
                padding:0px;
                top:0px; bottom:0px; left:0px; right:0px;
                ;
                z-index:1000;
                background-color:#cccccc;
            }
        </style>
    
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="0">
            </asp:ScriptManager>
                    <script language="javascript" type="text/javascript">
            <!--
                        var prm = Sys.WebForms.PageRequestManager.getInstance();
                        function CancelAsyncPostBack() {
                            if (prm.get_isInAsyncPostBack()) {
                                prm.abortPostBack();
                            }
                        }
                        prm.add_initializeRequest(InitializeRequest);
                        prm.add_endRequest(EndRequest);
                        var postBackElement;
                        function InitializeRequest(sender, args) {
                            if (prm.get_isInAsyncPostBack()) {
                                args.set_cancel(true);
                            }
                            postBackElement = args.get_postBackElement();
                            if (postBackElement.id == 'Button1') {
                                $get('UpdateProgress1').style.display = 'block';
                            }
                        }
                        function EndRequest(sender, args) {
                            if (postBackElement.id == 'Button1') {
                                $get('UpdateProgress1').style.display = 'none';
                            }
                        }
            // -->
            </script>
                <p style="font-family: 'Arial Black'; font-size: medium; font-weight: bold; font-style: normal">
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Create Access copy for Home use</p>
                        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" 
                            Text="Generate Home Use Database" />
                        <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" 
                            Text="Return to Main" />
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <legend>                   
                        <br />
                        &nbsp; &lt;Note: This may take several minutes to complete!&gt;<br />&nbsp;<br /><asp:Label 
                            ID="Label15" runat="server" Text="Table" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:Label ID="Label16" runat="server" Text="Records Transferred" 
                            Width="200px"></asp:Label>
                        <br />
                        <asp:Label ID="Label1" runat="server" Text="Capacitors" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label2" runat="server" Text="Connectors" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label3" runat="server" Text="Crystals and Oscillators" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label4" runat="server" Text="Diodes" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label5" runat="server" Text="ICs" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label6" runat="server" Text="Inductors" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label7" runat="server" Text="Misc" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label8" runat="server" Text="Relays" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox8" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label9" runat="server" Text="Resistors" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox9" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label10" runat="server" Text="Switches" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox10" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label11" runat="server" Text="Transformers" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox11" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label12" runat="server" Text="Transistors" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox12" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label13" runat="server" Text="TMPPRTS" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox13" runat="server"></asp:TextBox>
                        <br />
                        <asp:Label ID="Label14" runat="server" Text="CIS Manufacturer Parts" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox14" runat="server"></asp:TextBox>
                        <br />
                        <br />
                        <asp:Label ID="Label17" runat="server" Text="Total Records Transferred" Width="200px"></asp:Label>
                        &nbsp;&nbsp;<asp:TextBox ID="TextBox15" runat="server"></asp:TextBox>
                        <br />
                        <br /><asp:UpdateProgress ID="UpdateProgress1" runat="server" DisplayAfter="0" AssociatedUpdatePanelID="UpdatePanel1">
                            <ProgressTemplate>
    
                                <script type="text/javascript">
                                    document.write("<div class='UpdateProgressBackground'></div>");</script>
                                <center><div class="UpdateProgressContent"                                    
                                        style="border-width: 1px; border-style: double; background-color: #FFFFFF; font-weight: bold; left: 572px; height: 29px;">
                                    Transfer to MS-Access in process...
                                <asp:Image id="CapWait" runat="server" ImageUrl="~/Images/progress.gif"/>
                                </div></center>
    
                            </ProgressTemplate>
                        </asp:UpdateProgress>
                        <br />
                        </legend>
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
                </Triggers>
            </asp:UpdatePanel>
            <br /> 
        </div>
        </form>
    </body>
    </html>

    Thanks for your help!

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, August 26, 2015 9:38 AM