hi ,
try the following code:
1) Css Class:
.loadingMessageFrame
{
background-color: #dcdcdc;
filter: alpha(opacity=40);
opacity: 0.4;
position: relative;
z-index: 500;
top: 0px;
left: 0px;
border-top: dashed 1px black;
border-bottom: dashed 1px black;
border-left: dashed 1px black;
border-right: dashed 1px black;
}
.Loading_Message
{
font-size: medium;
font-weight: normal;
color: Maroon;
}
2)Code: add the Division tag
<pre lang="text">
<div id="dvLoading" runat="server" class="loadingMessageFrame" style="height: 270px; display: none;"/>
<table width="100%" style="height: 100%; table-layout: fixed;">
<tr>
<td align="center" valign="middle" style="height: 100%;">
<asp:label id="lblLoadingMessage" runat="server" text="Loading..." cssclass="Loading_Message" </asp:label>
</td>
</tr>
</table>
</div>
3)Javascript function:
function BtnClick() {
lLoadingMessage = document.getElementById('<%=lblLoadingMessage.ClientID %>');
var dvLoading = document.getElementById('<%=dvLoading.ClientID %>');
var dvMain = document.getElementById('<%=dvMain.ClientID %>');
if (dvMain != null) dvMain.style.display = 'none';
if (dvLoading != null) dvLoading.style.display = '';
return true;
}
4)
<asp:button id="uxBtn" runat="server" onclientclick="return BtnClick();" >
Text="Submmit" />
hopes this helps for you.