Click here to Skip to main content
15,902,635 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to disable all page's controls when user click button but i want to do this automatically in all application i means as soon as the post back occur , the page dispelled and also enabled automatically after post back end ?
Posted

you can use Update progress and use a big size image so that cover whole page, png image should be semi transparent to look N feel disabled at the time of postback when postback ends page automatically enable
 
Share this answer
 
Comments
zainab77 25-Jun-14 3:07am    
how can i do it automatically ??
i used this coed in html :
XML
<td width="50%" align="right">
                                <asp:UpdateProgress ID="UpdateProgress1" runat="server" DisplayAfter="30" AssociatedUpdatePanelID="p1">
                                    <ProgressTemplate>

                                        <div runat="server" id="div1" class="updateprogress">
                                            <table id="Table1" runat="server" style="height: 100%; width: 100%">
                                                <tr>
                                                    <td align="center">
                                                        <img alt="" src="../Images/icon-loading.gif" />
                                                        <%--<asp:label Text="please wait" Font-Bold="true" ForeColor="Red" Font-Size="Medium" runat="server" ID="lbl"> </asp:label>--%>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </ProgressTemplate>
                                </asp:UpdateProgress>
                                <asp:UpdatePanel runat="server" ID="p1">
                                    <ContentTemplate>
                                        <asp:Button runat="server" CssClass="Button" Text="show " ID="btn_show_inbox"
                                            OnClick="btn_show_inbox_Click" Width="200px" />
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </td>
class updateprogress in css
.updateprogress
{
height:9000px;
width:100%;
left:0%;
top:0%;
position:fixed;
background-color:Gray;
filter:alpha(opacity=50);
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900