Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
GoodDay guys!
Help me please.

Hello programmers and developers.

Im having a problem here.

I want to block the functionality of our whole page(includes master page) including the scrolling when our popup appeared.

Im using this code for my ModalPopupExtender:

XML
<cc1:ModalPopupExtender  ID="mdlPopup"  runat="server" TargetControlID="btnShowPopup" BackgroundCssClass="modalBackground" PopupControlID="CntrlPanel" DropShadow="true" BehaviorID="OrderDetailClient" >
</cc1:ModalPopu
pExtender>


then for my CSS code(this won't cover the master page):

CSS
.modalBackground {
	background-color:Gray;
	filter:alpha(opacity=70);
	opacity: 0.7;
        margin-top:-750px;
        margin-left:0px; 
}


It doesn't block the whole page and when some data is added in the page the location of the background changes.

We have a nested gridview inside our page and when we click the image button the popup appears but the ModalPopupExtender always appear after the nested gridview.

Is it possible to block the whole page including the scrolling when my popup show?

please help.

This is my whole page:

XML
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Default3.aspx.vb" Inherits="Default3" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <script type="text/javascript">

    var Grid = null
    var UpperBound = 0;
    var LowerBound = 1;
    var CollapseImage = 'Images/plus.gif';
    var ExpandImage = 'Images/minus.gif';
    var Rows = null;
    var n = 1;
    var TimeSpan = 25;
    
        window.onload = function toggleDiv(divid) {
      
                  if (document.getElementById(divid).style.display == 'none') {
                document.getElementById(divid).style.display = 'block';

                      
            } else {
                document.getElementById(divid).style.display = 'none';
            }
        }
        {
            Grid = document.getElementById('<%= me.grdCategory %>');
            UpperBound = parseInt('<%= me.grdCategory.Rows.Count %>');
            Rows = Grid.getElementsByTagName('tr');
        }

    function Toggle(Image, Index) {
        ToggleImage(Image, Index);
        ToggleColumns(Image, Index);
    }

    function ToggleImage(Image, Index) {
        //alert("Current image src = " + Image.src);
        //alert(Image.src.indexOf(ExpandImage));
        if (Image.src.indexOf(ExpandImage) > -1) {
            //alert("Collapse :: " + CollapseImage);
            Image.src = CollapseImage;
            Image.title = 'Collapse';
            n = LowerBound;
            Image.IsExpanded = true;

        } else {
           //alert("Expand :: " + ExpandImage);

            Image.src = ExpandImage;
            Image.title = 'Expand';
            n = UpperBound;
            Image.IsExpanded = false;
        }

    }

    function ToggleColumns(Image, Index) {
        if (n < LowerBound || n > UpperBound) return;

        Rows[n].getElementsByTagName('td')[Index].style.visibility = Rows[n].getElementsByTagName('td')[Index].style.visibility == '' || Rows[n].getElementsByTagName('td')[Index].style.visibility == 'visible' ? 'hidden' : 'visible';
        if (Image.IsExpanded) n++; else n--;
        setTimeout(function() { ToggleColumns(Image, Index); }, TimeSpan);
    }
    


</script>



<script type="text/javascript">
    function daya() {
    document.getElementById('<%=button2.ClientID%>').click();
}
function CloseDialog() {
    $find("OrderDetailClient").hide();
}
</script>
<br />
    <div>
         
        <br /><div class="hr" >
            <hr>
        </div>
        
 
             <asp:Label ID="Label4" runat="server" Font-Bold="True" Text="Training Plan Year:"></asp:Label>  
                            <br />
                                   <asp:DropDownList ID="drpdwnYear" runat="server" Width="173px" AutoPostBack="True">
                            </asp:DropDownList>
         
        <asp:Label ID="Label5" runat="server" ForeColor="#DBE9EB" Text="|" Width="5px"></asp:Label>
         
                            <asp:Button ID="bntCreateYear" runat="server" Text="Create" Width="79px" Height="20px" Font-Names="verdana,arial,helvetica,sans-serif" Font-Size="XX-Small" /><br />
        <div class="hr2">
            <hr />
            <br />
        </div>
        <div class="hr3">
            <hr />
            <div class="hr" >
            <hr>
        </div>
        </div>
             <asp:Label ID="Label6" runat="server" Font-Bold="True"
            Text="Add Course Category:"></asp:Label>
            <br />
                                <asp:TextBox ID="txtcategory" runat="server" Width="335px" 
            Font-Names="verdana,arial,helvetica,sans-serif" Font-Size="XX-Small" 
            Height="17px"></asp:TextBox>    
            <asp:Button ID="btnCatAdd" runat="server" Text="Insert" Width="107px" Font-Names="verdana,arial,helvetica,sans-serif" Font-Size="XX-Small" Height="20px" />
        <br />
        <br />
    </div>
    <div>
      
                        
            <cc1:ToolkitScriptManager ID="ToolkitScriptManager1"  runat="server">
        </cc1:ToolkitScriptManager>
                    <div id="divwidth">
                    <cc1:AutoCompleteExtender ID="AutoCompleteExtender1"  runat="server" MinimumPrefixLength="1"
        ServiceMethod="GetInfo" ServicePath="WebService.asmx" TargetControlID="txtcategory"  CompletionInterval="10"
         CompletionListCssClass="AutoExtender"
             CompletionListItemCssClass="AutoExtenderList"
             CompletionListHighlightedItemCssClass="AutoExtenderHighlight"
             CompletionListElementID="divwidth"
             CompletionSetCount="10">
        </cc1:AutoCompleteExtender>
        </div>
        <div class="hr2">
            <hr />
</div>
        <asp:UpdateProgress ID="UpdateProgress2" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
        <ProgressTemplate>
         <img alt="Update in Progress" src="Images/load.gif" height="30px"/>
        </ProgressTemplate>
        </asp:UpdateProgress>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                   <ContentTemplate>
                        <asp:GridView ID="grdCategory" runat="server" AutoGenerateColumns="False"   
                            Width="900px" DataKeyNames="CourseCatID" Font-Names="verdana,arial,helvetica,sans-serif" Font-Size="8pt" CellPadding="4" ForeColor="#333333" GridLines="None">
                        <Columns>
                        <asp:BoundField  HeaderText = "CourseCatID" DataField="CourseCatID" />
                             
                        <asp:TemplateField HeaderText="Course Category">
                        <ItemTemplate>
                        <a href="java<!-- no -->script:toggleDiv('mydiv<%# Eval("CourseCatID")%>')"><asp:Image ID="img" onclick="javascript:Toggle(this);" runat="server" ImageUrl="~/Images/minus.gif"
                        ToolTip="Collapse" Width="7px" Height="7px" ImageAlign="AbsMiddle"/></a>
                        <asp:Label ID="lbllastname" Height="15px" runat="server" Text='<%# Eval("CourseCatName")%>'> </asp:Label>
                        <div id="mydiv<%# Eval("CourseCatID")%>" >
                        <br />        
                        <asp:ImageButton ID="ImageAdd" Height="17px" ImageUrl="Images/addCourse.png" runat="server" CommandName="cmdAdd" CommandArgument='<%# Eval("CourseCatID") %>' OnClick="ImageAdd_click"
                        /><br /><br />
                        
                                
                                <asp:GridView ID="grdCourse" runat="server"  Width="800px" HorizontalAlign="Right" AutoGenerateColumns="False" align="center" DataKeyNames="CourseCode" Font-Names="verdana,arial,helvetica,sans-serif" Font-Size="8pt" BackColor="White" 
                                GridLines="Vertical" >
                                <Columns>
                                <asp:TemplateField HeaderText="CourseName" HeaderStyle-HorizontalAlign="Left">
                                 <ItemTemplate>
                                       <asp:Label ID="lblCoursename" runat="server" Text='<%# Eval("CourseName")%>' Width="300px" Height="10px"> </asp:Label>
                                            
                                 </ItemTemplate>
                                </asp:TemplateField>
                               <asp:TemplateField HeaderText="Course Code" HeaderStyle-HorizontalAlign="Left">
                                 <ItemTemplate>
                                       <asp:Label ID="lbllastname" runat="server" Text='<%# Eval("CourseCode")%>' Height="10px"> </asp:Label>
                                </ItemTemplate>
                               </asp:TemplateField>
                             
                             <asp:BoundField HeaderText = "Duration" DataField="Duration" HeaderStyle-HorizontalAlign="Left" />
                             
                             <asp:TemplateField HeaderText="Edit" HeaderStyle-HorizontalAlign="Left" >
                                 <ItemTemplate>
                                      <asp:ImageButton ID="ImageLink" Height="15px" ImageUrl="Images/edit.png" runat="server" CommandName="cmdlink" PostBackUrl='<%#"CourseUpdate.aspx?CourseName=" & Eval("CourseName")%>' />
                                 </ItemTemplate>
                                 <ItemStyle HorizontalAlign="Left" />
                             </asp:TemplateField>
                             
                             <asp:TemplateField HeaderText="Delete" HeaderStyle-HorizontalAlign="Left"  >
                                 <ItemTemplate>
                                     <asp:ImageButton ID="ImageDeleteCourse"  Height="15px" ImageUrl="Images/Delete.png" runat="server" CommandName="cmdDelete" CommandArgument='<%# Eval("CourseCode")%>'  OnClick="ImageDeleteCourse_Click" OnClientClick="return confirm('Are you sure to delete this Course?')"
                                        /><!-- onclick="ImageDeleteCourse_Click" -->
                                 </ItemTemplate>
                                 <ItemStyle HorizontalAlign="Left" />
                                </asp:TemplateField>
                                
                            <asp:CommandField ShowDeleteButton="True"  />
                            </Columns>
                            <RowStyle BackColor="White" ForeColor="#333333" />
                            <FooterStyle BackColor="White" ForeColor="#333333" />
                            <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
                            </asp:GridView>
                      </div>
                

                     </ItemTemplate>
                     </asp:TemplateField>
                             
                   
                             
                     <asp:TemplateField HeaderText="Delete" >
                      <ItemTemplate>
                      <asp:ImageButton ID="ImageDelete" Height="15px" ImageUrl="Images/Delete.png" 
                       runat="server" CommandName="cmdDelete" 
                       CommandArgument='<%# Eval("CourseCatID") %>' Width="16px" onclick="ImageDelete_Click"
                      /><br />
                      </ItemTemplate>
                      <ItemStyle VerticalAlign="Top" />
                      </asp:TemplateField>
                      <asp:CommandField ShowDeleteButton="True" />
                      <asp:TemplateField>
                      <ItemTemplate> 
                                   
                      </ItemTemplate> 
                      </asp:TemplateField> 
                                   
                     </Columns>
                            
                           
                            
                    <RowStyle BackColor="#EFFDFF" ForeColor="#333333" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" />
                    <EditRowStyle BackColor="#999999" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#333333" VerticalAlign="Middle" />
             </asp:GridView>
                   </ContentTemplate>     
                </asp:UpdatePanel>
                  
                     
        <asp:Label ID="Label10" runat="server" ForeColor="#DBE9EB" Text="|" Width="5px"></asp:Label>
         
                     
        <asp:Label ID="Label11" runat="server" ForeColor="#DBE9EB" Text="|" Width="5px"></asp:Label>
         
                        <br />
    </div>
    <br />


 <asp:Button id="btnShowPopup" runat="server" style="display:none" />
    
 <cc1:ModalPopupExtender  ID="mdlPopup"  runat="server" TargetControlID="btnShowPopup"  BackgroundCssClass="modalBackground" PopupControlID="CntrlPanel" DropShadow="true"
            BehaviorID="OrderDetailClient" >
                                     </cc1:ModalPopupExtender>
  <div id="CntrlPanel" style="display:none" class="popup" size="50px"  runat="server">
  

  
    <asp:UpdatePanel ID="UPanel" runat="server">
    <ContentTemplate>
    <asp:Panel ID="Panel1" runat="server">
    
    <asp:Label ID="lblResult" runat="server" Visible ="false" ForeColor="Red" Font-Bold="true"  ></asp:Label><br />

<asp:Label ID="Label7" runat="server" Text="Search: "  Width="100px"></asp:Label> 
        <asp:TextBox ID="txtSearchBox" onChange="daya();"  Width="250px" runat="server" Font-Names="verdana,arial,helvetica,sans-serif" Font-Size="XX-Small"></asp:TextBox>
<br />
<br />
<asp:Label ID="Label1" runat="server" Text="Course Code: "  Width="100px"></asp:Label> 

        <asp:TextBox ID="txtCourseCode" runat="server"  Width="173px" Font-Names="verdana,arial,helvetica,sans-serif" Font-Size="XX-Small"></asp:TextBox>
        <asp:CheckBox ID="checkMultiCode" text="MultiCode" runat="server" Font-Names="verdana,arial,helvetica,sans-serif" Font-Size="XX-Small" />
          <div style="removed:absolute;removed455px;removed65px;width:50px">
<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UPanel">

  <ProgressTemplate>
 <img alt="Update in Progress" src="Images/load.gif" height="30px"/>
</ProgressTemplate>
    </asp:UpdateProgress>
         </div>  
        <br />
        <br />
    <asp:Label ID="Label2" runat="server" Text="Course Name: " Width="100px"></asp:Label> 
    
        <asp:TextBox ID="txtCourseName"  runat="server" Width="250px" Font-Names="verdana,arial,helvetica,sans-serif" Font-Size="XX-Small"></asp:TextBox>

       <br />
       <br />
       <asp:Label ID="Label3" runat="server" Text="Duration: " Width="100px"></asp:Label> 
        <asp:TextBox ID="txtCourseDuration" runat="server" Width="250px" Font-Names="verdana,arial,helvetica,sans-serif" Font-Size="XX-Small"></asp:TextBox>
         
        
          <br />
          <br />
          <br />
    <asp:Button ID="ButtonSave" runat="server" HorizontalAlign="right" Text="Save" Enabled ="false" align="right" OnClientClick="CloseDialog()"  />
    <asp:Button ID="btnCancel" runat="server" align="right" Text="Cancel"/>
    
     <asp:Button ID="Button2" runat="server" align="right" Text="Cancel" style="display:None"/>
    <br />
       <br />
       
<asp:TextBox ID="txtCourseCatID" style="display:none" runat="server"></asp:TextBox>
 <asp:TextBox ID="txtCourseID" style="display:none" runat="server"></asp:TextBox>            
        <asp:TextBox ID="txtCode" style="display:none" runat="server"></asp:TextBox>
             <div id="div1">
        <cc1:AutoCompleteExtender ID="AutoCompleteExtender2"  runat="server" TargetControlID="txtSearchBox"
        CompletionListCssClass="AutoExtender"
             CompletionListItemCssClass="AutoExtenderList"
             CompletionListHighlightedItemCssClass="AutoExtenderHighlight"
             CompletionListElementID="div1"
             CompletionSetCount="10"
              ServicePath="WebService.asmx"
              ServiceMethod="CourseCode" 
              CompletionInterval="10"
              MinimumPrefixLength="1"
        >
        </cc1:AutoCompleteExtender>
       </div>
        
</asp:Panel>
    </ContentTemplate>
    </asp:UpdatePanel>   
   
    </div>  

    
    
</asp:Content>


and here is my master page
XML
<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>

<html xmlns:o="urn:schemas-microsoft-com:office:office" dir="ltr" lang="en-us"><head><meta name="GENERATOR" content="Microsoft SharePoint"><meta name="progid" content="SharePoint.WebPartPage.Document"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="Expires" content="0"><title>
	
	Training Plan

</title>
<link rel="stylesheet" type="text/css" href="css/default.css">
<link rel="stylesheet" type="text/css" href="css/portal.css">
<link rel="stylesheet" type="text/css" href="css/core.css">
<link rel="stylesheet" type="text/css" id="onetidThemeCSS" href="css/Jet1011-65001.css"><script type="text/javascript">
// <![CDATA[
document.write('<script type="text/javascript" src="/_layouts/1033/init.js?rev=BJDmyeIV5jS04CPkRq4Ldg%3D%3D"></' + 'script>');
document.write('<script type="text/javascript" src="/_layouts/1033/core.js?rev=4oHgWSB%2B%2Bj9DsKT0gMF4TQ%3D%3D"></' + 'script>');
document.write('<script type="text/javascript" src="/ScriptResource.axd?d=jUqoJsrHyRaIU3YjaXjaKg08PobMu8CnhVMi-_pyLwLEkMZVwxJsgxke0Jv-bvVlKIC5UjGcJNNTDoZBGYNNWuzwB4S37xBaN0qcfdryEqCjAyv47GuLS-3qhkfu1qlP8pUvUkXM4QS21d7kf91EzjZKVMM1&t=5c2f384e"></' + 'script>');
document.write('<script type="text/javascript" src="/_layouts/blank.js?rev=QGOYAJlouiWgFRlhHVlMKA%3D%3D"></' + 'script>');
document.write('<script type="text/javascript" src="/ScriptResource.axd?d=fLpj_Dv0eRmpXLWVWk5BXT2lwXLv_bXa0xn37aQdba8Tz0UVUO5S0lj4faPALGI5JM2Vx90SLImhZqp-sXhSmp2ihzsogvRgmoPGm15vgyKnvxNLpcjuDLFiP3Cr46zzBpWTib9TFciDhH5YZdGeON2a_dbkox-U2aiMoyNO6cxJJygF0&t=5c2f384e"></' + 'script>');
// 
</script><script type="text/javascript" src="js/init.js"></script><script type="text/javascript" src="js/core.js"></script><script type="text/javascript" src="js/ScriptResource_003.js"></script><script type="text/javascript" src="js/blank.js"></script><script type="text/javascript" src="js/ScriptResource_002.js"></script>
<link type="text/xml" rel="alternate" href="">
	
<style type="text/css">
	.zz1_TopNavigationMenu_0 { background-color:white;visibility:hidden;display:none;position:absolute;left:0px;top:0px; }
	.zz1_TopNavigationMenu_1 { text-decoration:none; }
	.zz1_TopNavigationMenu_2 {  }
	.zz1_TopNavigationMenu_3 { border-style:none; }
	.zz1_TopNavigationMenu_4 {  }
	.zz1_TopNavigationMenu_5 {  }
	.zz1_TopNavigationMenu_6 { border-style:none; }
	.zz1_TopNavigationMenu_7 {  }
	.zz1_TopNavigationMenu_8 { background-color:#F2F3F4;border-color:#A7B4CE;border-width:1px;border-style:solid; }
	.zz1_TopNavigationMenu_9 { border-style:none; }
	.zz1_TopNavigationMenu_10 {  }
	.zz1_TopNavigationMenu_11 { border-style:none; }
	.zz1_TopNavigationMenu_12 {  }
	.zz1_TopNavigationMenu_13 { border-style:none; }
	.zz1_TopNavigationMenu_14 {  }
	.zz1_TopNavigationMenu_15 { border-style:none; }
	.zz1_TopNavigationMenu_16 { background-color:#CBE3F0; }
	.zz2_MenuQuickLaunch_0 { background-color:white;visibility:hidden;display:none;position:absolute;left:0px;top:0px; }
	.zz2_MenuQuickLaunch_1 { text-decoration:none; }
	.zz2_MenuQuickLaunch_2 {  }
	.zz2_MenuQuickLaunch_3 { border-style:none; }
	.zz2_MenuQuickLaunch_4 {  }
	.zz2_MenuQuickLaunch_5 { border-style:none; }
	.zz2_MenuQuickLaunch_6 {  }
	.zz2_MenuQuickLaunch_7 {  }
	.zz2_MenuQuickLaunch_8 {  }
	.zz2_MenuQuickLaunch_9 { border-style:none; }
	.zz2_MenuQuickLaunch_10 {  }
	.zz2_MenuQuickLaunch_11 { border-style:none; }
	.zz2_MenuQuickLaunch_12 {  }
	.zz3_QuickLaunchMenu_0 { background-color:white;visibility:hidden;display:none;position:absolute;left:0px;top:0px; }
	.zz3_QuickLaunchMenu_1 { text-decoration:none; }
	.zz3_QuickLaunchMenu_2 {  }
	.zz3_QuickLaunchMenu_3 { border-style:none; }
	.zz3_QuickLaunchMenu_4 {  }
	.zz3_QuickLaunchMenu_5 { border-style:none; }
	.zz3_QuickLaunchMenu_6 {  }
	.zz3_QuickLaunchMenu_7 {  }
	.zz3_QuickLaunchMenu_8 {  }
	.zz3_QuickLaunchMenu_9 { border-style:none; }
	.zz3_QuickLaunchMenu_10 {  }
	.zz3_QuickLaunchMenu_11 { border-style:none; }
	.zz3_QuickLaunchMenu_12 {  }

</style><script src="js/ScriptResx_002.js" type="text/javascript"></script><script src="js/search.js" type="text/javascript"></script><script src="js/mdn.js" type="text/javascript"></script></head>

<body scroll="yes" onload="javascript:if (typeof(_spBodyOnLoadWrapper) != 'undefined') _spBodyOnLoadWrapper();">
  <form name="formmain" runat="server">
<div>
   
    <script src="js/WebResource.js" type="text/javascript"></script>

    <script type="text/javascript">
    </script>

    <script src="js/ScriptResource.js" type="text/javascript"></script>

    <script src="js/blank.js" type="text/javascript"></script>

    <script type="text/javascript">
//<![CDATA[

//
    </script>

</div>
<div>
     </div>
  <table class="ms-main" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
	<tbody><tr><td>
	   <table border="0" cellpadding="0" cellspacing="0" width="100%">
		<tbody><tr>
		 <td colspan="4" class="ms-globalbreadcrumb" style="height: 23px">
			<span id="TurnOnAccessibility" style="">
			   <a id="linkTurnOnAcc" href="#" class="ms-skip"  önclick="SetIsAccessibilityFeatureEnabled(true);UpdateAccessibilityUI();document.getElementById('linkTurnOffAcc').focus();return false;">Turn on more accessible mode</a>
			</span>
			<span id="TurnOffAccessibility" style="display:none">
			   <a id="linkTurnOffAcc" href="#" class="ms-acclink"  önclick="SetIsAccessibilityFeatureEnabled(false);UpdateAccessibilityUI();document.getElementById('linkTurnOnAcc').focus(); return false;">Turn off more accessible mode</a>
			</span>
			<span>
	       <a href="java<!-- no -->script:;"  önclick="javascript:this.href='#mainContent';" class="ms-skip" accesskey="X">Skip to main content</a>
			</span>
		 <table class="ms-globalleft" cellpadding="0" cellspacing="0" height="100%">
		   <tbody><tr>
			<td class="ms-globallinks" style="padding-removed 2px; height: 100%;" valign="middle">
			</td>
		   </tr>
		 </tbody></table>
			</td>
		   </tr>
	   </tbody></table>
	  </td></tr>
	<tr>
	 <td class="ms-globalTitleArea">
	  <table border="0" cellpadding="0" cellspacing="0" width="100%">
	   <tbody><tr>
		<td id="GlobalTitleAreaImage" class="ms-titleimagearea">
            <img id="ctl00_onetidHeadbnnr0" src="Images/Fluor.jpg" 
                alt="Fluor Business Online" style="border-width: 0px; height: 12px;"></td>
		<td class="ms-sitetitle" width="100%">
		  
		  <h1 class="ms-sitetitle">
              <asp:Label ID="lblPageTitle" runat="server" CssClass="ms-sitetitle" Height="24px"
                  Width="196px"></asp:Label> </h1>
		  
		</td>
		<td style="padding-removed 8px;" valign="top">
		  
			  <table class="s4-wpTopTable" border="0" cellpadding="0" cellspacing="0" width="100%">
	<tbody><tr>
		<td> </td>
	</tr>
</tbody></table>
		  
		</td>
	   </tr>
	  </tbody></table>
	 </td>
	</tr>
	<tr>
	 <td id="onetIdTopNavBarContainer" class="ms-bannerContainer" width="100%" style="height: 55px">
		
	
		  <!--Top bar-->
<table id="zz1_TopNavigationMenu" class="ms-topNavContainer zz1_TopNavigationMenu_5 zz1_TopNavigationMenu_2" border="0" cellpadding="0" cellspacing="0" style="width: 1285px">
	<tbody><tr>
		<td style="width: 1017px; height: 4px;"><div id="zz1_TopNavigationMenun1Items" class="zz1_TopNavigationMenu_0 zz1_TopNavigationMenu_8" style="removed 16px; removed 755px; height: 329px;" language="javascript"  önclick="return zz1_TopNavigationMenun1Items_onclick()">
			<table border="0" cellpadding="0" cellspacing="0">
				<tbody><tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)"  önkeyup="Menu_Key(event)" title="Enterprise Applications Team Site" id="zz1_TopNavigationMenun5">
					<td><table class="ms-topNavFlyOuts zz1_TopNavigationMenu_7" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td style="white-space: nowrap; width: 100%; height: 19px;"><a class="zz1_TopNavigationMenu_1 ms-topNavFlyOuts zz1_TopNavigationMenu_6" href="" style="border-style: none; font-size: 1em;">Link here</a></td>
						</tr>
					</tbody></table></td>
				</tr><tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)"  önkeyup="Menu_Key(event)" id="zz1_TopNavigationMenun6">
					<td><table class="ms-topNavFlyOuts zz1_TopNavigationMenu_7" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td style="white-space: nowrap; width: 100%;"><a class="zz1_TopNavigationMenu_1 ms-topNavFlyOuts zz1_TopNavigationMenu_6" href="" style="border-style: none; font-size: 1em;">Link Here</a></td>
						</tr>
					</tbody></table></td>
				</tr><tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)"  önkeyup="Menu_Key(event)" id="zz1_TopNavigationMenun7">
					<td><table class="ms-topNavFlyOuts zz1_TopNavigationMenu_7" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td style="white-space: nowrap; width: 100%;"><a class="zz1_TopNavigationMenu_1 ms-topNavFlyOuts zz1_TopNavigationMenu_6" href="" style="border-style: none; font-size: 1em;">Link Here</a></td>
						</tr>
					</tbody></table></td>
				</tr><tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)"  önkeyup="Menu_Key(event)" id="zz1_TopNavigationMenun8">
					<td><table class="ms-topNavFlyOuts zz1_TopNavigationMenu_7" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td style="white-space: nowrap; width: 100%; height: 19px;"><a class="zz1_TopNavigationMenu_1 ms-topNavFlyOuts zz1_TopNavigationMenu_6" href="" style="border-style: none; font-size: 1em;">Link here</a></td>
						</tr>
					</tbody></table></td>
				</tr><tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)"  önkeyup="Menu_Key(event)" id="zz1_TopNavigationMenun9">
					<td><table class="ms-topNavFlyOuts zz1_TopNavigationMenu_7" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td style="white-space: nowrap; width: 100%;"><a class="zz1_TopNavigationMenu_1 ms-topNavFlyOuts zz1_TopNavigationMenu_6" href="" style="border-style: none; font-size: 1em;">Link Here</a></td>
						</tr>
					</tbody></table></td>
				</tr><tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)"  önkeyup="Menu_Key(event)" id="zz1_TopNavigationMenun10">
					<td><table class="ms-topNavFlyOuts zz1_TopNavigationMenu_7" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td style="white-space: nowrap; width: 100%;"><a class="zz1_TopNavigationMenu_1 ms-topNavFlyOuts zz1_TopNavigationMenu_6" href="" style="border-style: none; font-size: 1em;">Link Here</a></td>
						</tr>
					</tbody></table></td>
				</tr>
			</tbody></table><div class="ms-topNavFlyOuts zz1_TopNavigationMenu_7 zz1_TopNavigationMenu_0" id="zz1_TopNavigationMenun1ItemsUp" onmouseover="PopOut_Up(this)"  önmouseout="PopOut_Stop(this)" style="text-align:center;">
				<img src="Images/WebResource.gif" alt="Scroll up">
			</div><div class="ms-topNavFlyOuts zz1_TopNavigationMenu_7 zz1_TopNavigationMenu_0" id="zz1_TopNavigationMenun1ItemsDn" onmouseover="PopOut_Down(this)"  önmouseout="PopOut_Stop(this)" style="text-align:center;">
				<img src="Images/WebResource_002.gif" alt="Scroll down">
			</div>
		</div><div id="zz1_TopNavigationMenun4Items" class="zz1_TopNavigationMenu_0 zz1_TopNavigationMenu_8" style="removed 3px; removed 557px; height: 263px;">
			<table border="0" cellpadding="0" cellspacing="0" style="height: 242px">
				<tbody><tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)"  önkeyup="Menu_Key(event)" id="zz1_TopNavigationMenun11">
					<td><table class="ms-topNavFlyOuts zz1_TopNavigationMenu_7" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td style="white-space: nowrap; width: 100%;"><a class="zz1_TopNavigationMenu_1 ms-topNavFlyOuts zz1_TopNavigationMenu_6" href="../Admin/Userlist.aspx"  style="border-style: none; font-size: 1em;">User List</a></td>
						</tr>
					</tbody></table></td>
				</tr><tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)"  önkeyup="Menu_Key(event)" id="zz1_TopNavigationMenun12">
					<td><table class="ms-topNavFlyOuts zz1_TopNavigationMenu_7" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td style="white-space: nowrap; width: 100%;"><a class="zz1_TopNavigationMenu_1 ms-topNavFlyOuts zz1_TopNavigationMenu_6" href="" style="border-style: none; font-size: 1em;">Link Here</a></td>
						</tr>
					</tbody></table></td>
				</tr><tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)"  önkeyup="Menu_Key(event)" id="zz1_TopNavigationMenun13">
					<td><table class="ms-topNavFlyOuts zz1_TopNavigationMenu_7" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td style="white-space: nowrap; width: 100%;"><a class="zz1_TopNavigationMenu_1 ms-topNavFlyOuts zz1_TopNavigationMenu_6" href="" style="border-style: none; font-size: 1em;">Link Here</a></td>
						</tr>
					</tbody></table></td>
				</tr><tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)"  önkeyup="Menu_Key(event)" id="zz1_TopNavigationMenun14">
					<td><table class="ms-topNavFlyOuts zz1_TopNavigationMenu_7" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td style="white-space: nowrap; width: 100%;"><a class="zz1_TopNavigationMenu_1 ms-topNavFlyOuts zz1_TopNavigationMenu_6" href="" style="border-style: none; font-size: 1em;">Link Here</a></td>
						</tr>
					</tbody></table></td>
				</tr><tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)"  önkeyup="Menu_Key(event)" id="zz1_TopNavigationMenun15">
					<td style="height: 52px"><table class="ms-topNavFlyOuts zz1_TopNavigationMenu_7" border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody><tr>
							<td style="white-space: nowrap; width: 100%;"><a class="zz1_TopNavigationMenu_1 ms-topNavFlyOuts zz1_TopNavigationMenu_6" href="" style="border-style: none; font-size: 1em;">Link here</a></td>
						</tr>
					</tbody></table></td>
				</tr>
			</tbody></table><div class="ms-topNavFlyOuts zz1_TopNavigationMenu_7 zz1_TopNavigationMenu_0" id="zz1_TopNavigationMenun4ItemsUp" onmouseover="PopOut_Up(this)"  önmouseout="PopOut_Stop(this)" style="text-align:center;">
				<img src="images/WebResource.gif" alt="Scroll up">
			</div><div class="ms-topNavFlyOuts zz1_TopNavigationMenu_7 zz1_TopNavigationMenu_0" id="zz1_TopNavigationMenun4ItemsDn" onmouseover="PopOut_Down(this)"  önmouseout="PopOut_Stop(this)" style="text-align:center;">
				<img src="Images/WebResource_002.gif" alt="Scroll down">
			</div>
		</div></td>
	</tr>
</tbody></table>


	 <table class="zz1_TopNavigationMenu_5" border="0" cellpadding="0" cellspacing="0" style="width: 127%; height: 30px;">
			<tbody><tr>
                <td onkeyup="Menu_Key(event)" onmouseout="Menu_Unhover(this)"  önmouseover="Menu_HoverStatic(this)"
                    style="width: 56px; height: 40px">
                    <table class="ms-topnav zz1_TopNavigationMenu_4" border="0" cellpadding="0" cellspacing="0" width="100%">
					<tbody><tr>
						<td style="white-space: nowrap;"><a class="zz1_TopNavigationMenu_1 ms-topnav zz1_TopNavigationMenu_3" href="" style="border-style: none; font-size: 1em;">Home</a></td>
					</tr>
				</tbody></table>
                </td>
                <td onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)"  önkeyup="Menu_Key(event)" id="zz1_TopNavigationMenun1" style="height: 40px; width: 88px;">
				
				<table class="ms-topnav zz1_TopNavigationMenu_4" border="0" cellpadding="0" cellspacing="0" width="100%">
					<tbody><tr>
						<td style="white-space: nowrap;"><a class="zz1_TopNavigationMenu_1 ms-topnav zz1_TopNavigationMenu_3" href="" style="border-style: none; font-size: 1em;">Training Plan</a></td>
					</tr>
				</tbody></table>
                </td><td onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)"  önkeyup="Menu_Key(event)" id="zz1_TopNavigationMenun2" style="height: 40px; width: 80px;">
                
                <table class="ms-topnav zz1_TopNavigationMenu_4" border="0" cellpadding="0" cellspacing="0" width="100%">
					<tbody><tr>
						<td style="white-space: nowrap;"><a class="zz1_TopNavigationMenu_1 ms-topnav zz1_TopNavigationMenu_3" href="" style="border-style: none; font-size: 1em;">Courses</a></td>
					</tr>
				</tbody></table></td><td onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)"  önkeyup="Menu_Key(event)" id="zz1_TopNavigationMenun3" style="height: 40px; width: 60px;"><table class="ms-topnav zz1_TopNavigationMenu_4" border="0" cellpadding="0" cellspacing="0" width="100%">
					<tbody><tr>
						<td style="white-space: nowrap;"><a class="zz1_TopNavigationMenu_1 ms-topnav zz1_TopNavigationMenu_3" href="" style="border-style: none; font-size: 1em;">About Us</a></td>
					</tr>
				</tbody></table></td><td onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)"  önkeyup="Menu_Key(event)" id="zz1_TopNavigationMenun4" style="height: 40px; width: 100px;"><table class="ms-topnav zz1_TopNavigationMenu_4" border="0" cellpadding="0" cellspacing="0" width="100%">
					<tbody><tr>
						<td style="white-space: nowrap; width: 84px;"><a class="zz1_TopNavigationMenu_1 ms-topnav zz1_TopNavigationMenu_3" href="" style="border-style: none; font-size: 1em; removed: text;">Administrator</a></td><td style="width: 0pt;"><img src="Images/menudark.gif" alt="" style="border-style: none; vertical-align: middle;"></td>
					</tr>
				</tbody></table></td>
				<td onkeyup="Menu_Key(event)" onmouseout="Menu_Unhover(this)"  önmouseover="Menu_HoverStatic(this)"
                    style="height: 40px" colspan="5">
                    <div style="height: 20px; background-color: gainsboro">
                    </div>
                </td>
                <td onkeyup="Menu_Key(event)" onmouseout="Menu_Unhover(this)"  önmouseover="Menu_HoverStatic(this)"
                    style="width: 100px; height: 40px">
                    <table class="ms-topnav zz1_TopNavigationMenu_4" border="0" cellpadding="0" cellspacing="0" width="100%">
					<tbody><tr>
						<td style="white-space: nowrap;"><a class="zz1_TopNavigationMenu_1 ms-topnav zz1_TopNavigationMenu_3" href="" style="border-style: none; font-size: 1em; removed: text;"></a></td><td style="width: 0pt;"></td>
					</tr>
				</tbody></table>
              </table>

</td></tr>
	<tr><td colspan="4" id="mpdmconsole" class="ms-consolemptablerow" style="height: 2px">
	 </td>
	</tr>
	
	<tr height="100%"><td><table cellpadding="0" cellspacing="0" height="100%" width="100%">
	<tbody><tr>
	 <td class="ms-titlearealeft" id="TitleAreaImageCell" nowrap="nowrap" valign="middle" style="height: 22px; width: 114px;"><div style="height:100%" class="ms-titleareaframe"></div></td>
	 <td class="ms-titleareaframe" id="TitleAreaFrameClass" style="height: 22px">
	  
 <div class="ms-titleareaframe"><img src="Images/blank.gif" alt="" height="100%" width="1"></div>

	 </td>
	 <td id="onetidPageTitleAreaFrame" class="ms-areaseparator" style="width: 100%; height: 22px;" nowrap="nowrap" valign="top">

	 </td>
	 <td class="ms-titlearearight" style="height: 22px">
		
		
 <div style="height:100%;" class="ms-titleareaframe"><img src="Images/blank.gif" alt="" height="1" width="1"></div>
</td>
	</tr>

	<tr>
	  <td class="ms-leftareacell" id="LeftNavigationAreaCell" valign="top" style="height: 1487px; width: 114px;">
	   <table class="ms-nav" cellpadding="0" cellspacing="0" height="100%" width="100%">
		<tbody><tr>
		 <td>
		  <table class="ms-navframe" border="0" cellpadding="0" cellspacing="0" height="100%">
		   <tbody><tr valign="top">
			<td width="4px"><img src="images/blank.gif" alt="" height="1" width="4"></td>
			<td valign="top" width="100%">
			  <div style="padding-removed1px">
				
				
				
				

	<div class="ms-quicklaunchouter">
	<div class="ms-quickLaunch" style="width:100%">
	
	<table id="zz2_MenuQuickLaunch" class="ms-navSubMenu1 zz2_MenuQuickLaunch_7 zz2_MenuQuickLaunch_2" border="0" cellpadding="0" cellspacing="0">
	<tbody><tr onmouseover="Menu_HoverRoot(this)" onmouseout="Menu_Unhover(this)"  önkeyup="Menu_Key(event)" id="zz2_MenuQuickLaunchn0">
		<td><table class="ms-navheader zz2_MenuQuickLaunch_4" border="0" cellpadding="0" cellspacing="0" width="100%">
			<tbody><tr>
				<td style="width: 100%;"><a class="zz2_MenuQuickLaunch_1 ms-navheader zz2_MenuQuickLaunch_3" href="" style="border-style: none; font-size: 1em;">Courses</a></td>
			</tr>
		</tbody></table></td>
	</tr><tr>
		<td><table class="ms-navSubMenu2 zz2_MenuQuickLaunch_8" border="0" cellpadding="0" cellspacing="0" width="100%">
			<tbody><tr onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)"  önkeyup="Menu_Key(event)" id="zz2_MenuQuickLaunchn1">
				<td><table class="ms-navitem zz2_MenuQuickLaunch_6 ms-selectednav zz2_MenuQuickLaunch_12" border="0" cellpadding="0" cellspacing="0" width="100%">
					<tbody><tr>
						<td style="width: 100%;"><a class="zz2_MenuQuickLaunch_1 ms-navitem zz2_MenuQuickLaunch_5 ms-selectednav zz2_MenuQuickLaunch_11" href="" style="border-style: none; font-size: 1em;">Add Courses</a></td>
					</tr>
				</tbody></table></td>
			</tr><tr onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)"  önkeyup="Menu_Key(event)" id="zz2_MenuQuickLaunchn2">
				<td><table class="ms-navitem zz2_MenuQuickLaunch_6" border="0" cellpadding="0" cellspacing="0" width="100%">
					<tbody><tr>
						<td style="width: 100%;"><a class="zz2_MenuQuickLaunch_1 ms-navitem zz2_MenuQuickLaunch_5" href="" style="border-style: none; font-size: 1em;">Edit Courses</a></td>
					</tr>
				</tbody></table></td>
			</tr><tr onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)"  önkeyup="Menu_Key(event)" id="zz2_MenuQuickLaunchn3">
				<td><table class="ms-navitem zz2_MenuQuickLaunch_6" border="0" cellpadding="0" cellspacing="0" width="100%">
					<tbody><tr>
						<td style="width: 100%;"><a class="zz2_MenuQuickLaunch_1 ms-navitem zz2_MenuQuickLaunch_5" href="" style="border-style: none; font-size: 1em;">Delete Courses</a></td>
					</tr>
				</tbody></table></td>
			</tr><tr onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)"  önkeyup="Menu_Key(event)" id="zz2_MenuQuickLaunchn4">
				<td style="height: 36px"><table class="ms-navitem zz2_MenuQuickLaunch_6" border="0" cellpadding="0" cellspacing="0" width="100%">
					<tbody><tr>
						<td style="width: 100%;"><a class="zz2_MenuQuickLaunch_1 ms-navitem zz2_MenuQuickLaunch_5" href="" style="border-style: none; font-size: 1em;">View Courses</a></td>
					</tr>
				</tbody></table></td>
			</tr><tr onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)"  önkeyup="Menu_Key(event)" id="zz2_MenuQuickLaunchn5">
				<td><table class="ms-navitem zz2_MenuQuickLaunch_6" border="0" cellpadding="0" cellspacing="0" width="100%">
					<tbody><tr>
						<td style="width: 100%;"><a class="zz2_MenuQuickLaunch_1 ms-navitem zz2_MenuQuickLaunch_5" href="" style="border-style: none; font-size: 1em;">Link here</a></td>
					</tr>
				</tbody></table></td>
			</tr><tr onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)"  önkeyup="Menu_Key(event)" id="zz2_MenuQuickLaunchn6">
				<td><table class="ms-navitem zz2_MenuQuickLaunch_6" border="0" cellpadding="0" cellspacing="0" width="100%">
					<tbody><tr>
						<td style="width: 100%;"><a class="zz2_MenuQuickLaunch_1 ms-navitem zz2_MenuQuickLaunch_5" href="" style="border-style: none; font-size: 1em;">Link here</a></td>
					</tr>
				</tbody></table></td>
			</tr>
		</tbody></table></td>
		<table border="0" cellpadding="0" cellspacing="0"><tbody><tr height="5px"><td></td></tr></tbody></table>
	
				<div class="ms-quicklaunchouter">
                     </div>

		</div>
		</div>

				
				
			  </div>
			</td>
		   </tr>
		   <tr><td colspan="2"><img src="Images/blank.gif" alt="" height="1" width="138"></td></tr>
		  </tbody></table>
		 </td>
		 <td></td>
		</tr>
	   </tbody></table>
	  </td>
	  <td style="height: 1487px">
 <div style="height:100%;" class="ms-pagemargin"><img src="Images/blank.gif" alt="" height="1" width="10"></div>
</td>
	  <td valign="top" style="height: 1487px"  runat="server" id="Td1">
          <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
          </asp:ContentPlaceHolder>
	  </td>
	  </table>
	  </table>
</form>
  
	  
  
   <input name="__spText1" title="text" style="display: none;" type="text">
   <input name="__spText2" title="text" style="display: none;" type="text">
  

<script type="text/javascript">
//<![CDATA[
var zz1_TopNavigationMenu_Data = new Object();
zz1_TopNavigationMenu_Data.disappearAfter = 500;
zz1_TopNavigationMenu_Data.horizontalOffset = 0;
zz1_TopNavigationMenu_Data.verticalOffset = 0;
zz1_TopNavigationMenu_Data.hoverClass = 'zz1_TopNavigationMenu_16 ms-topNavFlyOutsHover';
zz1_TopNavigationMenu_Data.hoverHyperLinkClass = 'zz1_TopNavigationMenu_15 ms-topNavFlyOutsHover';
zz1_TopNavigationMenu_Data.staticHoverClass = 'zz1_TopNavigationMenu_14 ms-topNavHover';
zz1_TopNavigationMenu_Data.staticHoverHyperLinkClass = 'zz1_TopNavigationMenu_13 ms-topNavHover';
if (typeof(overrideMenu_HoverStatic) == 'function' && typeof(Menu_HoverStatic) == 'function')
{
_spBodyOnLoadFunctionNames.push('enableFlyoutsAfterDelay');
Menu_HoverStatic = overrideMenu_HoverStatic;
}
var zz2_MenuQuickLaunch_Data = new Object();
zz2_MenuQuickLaunch_Data.disappearAfter = 500;
zz2_MenuQuickLaunch_Data.horizontalOffset = 0;
zz2_MenuQuickLaunch_Data.verticalOffset = 0;
var zz3_QuickLaunchMenu_Data = new Object();
zz3_QuickLaunchMenu_Data.disappearAfter = 500;
zz3_QuickLaunchMenu_Data.horizontalOffset = 0;
zz3_QuickLaunchMenu_Data.verticalOffset = 0;
var _spFormDigestRefreshInterval = 1440000;//
</script>

</body>
</html>



it would be a greaaaat help.

thanks in advance guys. looking forward for your help/answers. :)
Posted
Updated 23-Jan-12 14:31pm
v12
Comments
[no name] 6-Dec-11 23:30pm    
EDIT: added "pre" tags
Ariel Riyo 6-Dec-11 23:32pm    
thanks mr. Eduard Lu. :)

Hi,

try the following css

CSS
.black_show
{
    cursor: wait;
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 140%;
    background-color: #777777;
    z-index: 1001;
    -moz-opacity: 0.8;
    opacity: .75;
    filter: alpha(opacity=90);
}



Hope this helps
 
Share this answer
 
Comments
Ariel Riyo 6-Dec-11 23:22pm    
thank you sir. but the background started below my table. how can i overcome that? thank you very much for your help sir.
sriman.ch 7-Dec-11 0:02am    
Try the following...

<cc1:ModalPopupExtender ID="mdlPopup" runat="server" TargetControlID="btnShowPopup" BackgroundCssClass="black_show" PopupControlID="CntrlPanel" DropShadow="true" BehaviorID="OrderDetailClient" >
sriman.ch 7-Dec-11 0:03am    
share your aspx code where you have placed modalpopupextender....
Ariel Riyo 7-Dec-11 0:35am    
Hello sir. it is already shown. at my question sir. already tried that sir but still no progress. we hope you can help us. thank you.
sriman.ch 7-Dec-11 0:38am    
I am asking about your entire aspx page code not only the modal popup extender ? The above css is working fine for me...
Have a look on the following link it may help you

http://www.quirksmode.org/dom/w3c_cssom.html#windowview[^]
 
Share this answer
 
Hi,

As per my observation I am suggesting the following points

1. In one gridview you have specified the width to 900px which will enable horizontal scrolling if that is greater than screen width.
2. I noticed some values of the width attribute are greater than 1000px(1285px) which will defenitely give you horizontal scrolling.
3. Never specify width in pixels instead specify them in %. If at all you require them to be in pixels then put the control in panel and enable horizontal scrolling of that panel.
4. Check for all the widths which are greater than 750px and try to change them to % or put them in panel.
5. In your css also if there are any fixed widths change them accordingly.


Try to do all these changes and do let me know if you are still facing the issues.

Hope this helps.
 
Share this answer
 
v2
Comments
Ariel Riyo 9-Dec-11 0:47am    
Sir Good Day. Still the same. what should i really do? please help me. thank you very much sir.
sriman.ch 9-Dec-11 1:15am    
What exactly the issue you are facing now ?
Ariel Riyo 9-Dec-11 1:29am    
still the same sir. the modal background dont cover the master page and the horizontal scroll is infinite sir.
Ariel Riyo 11-Dec-11 17:28pm    
sir. is there any other solution?
sriman.ch 11-Dec-11 22:56pm    
Have you changed all width attributes to % and check all your css you are referring to and try to change the width attibute.
Hi

I have modified your master and content and the modalpopup extender is working fine for me

Take these as reference and change your pages(I have deleted some of the script links)

Your master page

XML
<html xmlns:o="urn:schemas-microsoft-com:office:office" dir="ltr" lang="en-us">
<head>
    <meta name="GENERATOR" content="Microsoft SharePoint" />
    <meta name="progid" content="SharePoint.WebPartPage.Document" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="Expires" content="0" />
    <title>Training Plan </title>
    <link href="../Styles/grid.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="css/default.css" />
    <link rel="stylesheet" type="text/css" href="css/portal.css" />
    <link rel="stylesheet" type="text/css" href="css/core.css" />
    <link rel="stylesheet" type="text/css" id="onetidThemeCSS" href="css/Jet1011-65001.css" />
    <script type="text/javascript">
        document.write('<script type="text/javascript" src="/_layouts/1033/init.js?rev=BJDmyeIV5jS04CPkRq4Ldg%3D%3D"></' + 'script>');
        document.write('<script type="text/javascript" src="/_layouts/1033/core.js?rev=4oHgWSB%2B%2Bj9DsKT0gMF4TQ%3D%3D"></' + 'script>');
        document.write('<script type="text/javascript" src="/ScriptResource.axd?d=jUqoJsrHyRaIU3YjaXjaKg08PobMu8CnhVMi-_pyLwLEkMZVwxJsgxke0Jv-bvVlKIC5UjGcJNNTDoZBGYNNWuzwB4S37xBaN0qcfdryEqCjAyv47GuLS-3qhkfu1qlP8pUvUkXM4QS21d7kf91EzjZKVMM1&t=5c2f384e"></' + 'script>');
        document.write('<script type="text/javascript" src="/_layouts/blank.js?rev=QGOYAJlouiWgFRlhHVlMKA%3D%3D"></' + 'script>');
        document.write('<script type="text/javascript" src="/ScriptResource.axd?d=fLpj_Dv0eRmpXLWVWk5BXT2lwXLv_bXa0xn37aQdba8Tz0UVUO5S0lj4faPALGI5JM2Vx90SLImhZqp-sXhSmp2ihzsogvRgmoPGm15vgyKnvxNLpcjuDLFiP3Cr46zzBpWTib9TFciDhH5YZdGeON2a_dbkox-U2aiMoyNO6cxJJygF0&t=5c2f384e"></' + 'script>');
    </script>
    <script type="text/javascript" src="js/init.js"></script>
    <script type="text/javascript" src="js/core.js"></script>
    <script type="text/javascript" src="js/ScriptResource_003.js"></script>
    <script type="text/javascript" src="js/blank.js"></script>
    <script type="text/javascript" src="js/ScriptResource_002.js"></script>
    <link type="text/xml" rel="alternate" href="">
    <style type="text/css">
        .zz1_TopNavigationMenu_0
        {
            background-color: white;
            visibility: hidden;
            display: none;
            position: absolute;
            left: 0px;
            top: 0px;
        }
        .zz1_TopNavigationMenu_1
        {
            text-decoration: none;
        }
        .zz1_TopNavigationMenu_2
        {
        }
        .zz1_TopNavigationMenu_3
        {
            border-style: none;
        }
        .zz1_TopNavigationMenu_4
        {
        }
        .zz1_TopNavigationMenu_5
        {
        }
        .zz1_TopNavigationMenu_6
        {
            border-style: none;
        }
        .zz1_TopNavigationMenu_7
        {
        }
        .zz1_TopNavigationMenu_8
        {
            background-color: #F2F3F4;
            border-color: #A7B4CE;
            border-width: 1px;
            border-style: solid;
        }
        .zz1_TopNavigationMenu_9
        {
            border-style: none;
        }
        .zz1_TopNavigationMenu_10
        {
        }
        .zz1_TopNavigationMenu_11
        {
            border-style: none;
        }
        .zz1_TopNavigationMenu_12
        {
        }
        .zz1_TopNavigationMenu_13
        {
            border-style: none;
        }
        .zz1_TopNavigationMenu_14
        {
        }
        .zz1_TopNavigationMenu_15
        {
            border-style: none;
        }
        .zz1_TopNavigationMenu_16
        {
            background-color: #CBE3F0;
        }
        .zz2_MenuQuickLaunch_0
        {
            background-color: white;
            visibility: hidden;
            display: none;
            position: absolute;
            left: 0px;
            top: 0px;
        }
        .zz2_MenuQuickLaunch_1
        {
            text-decoration: none;
        }
        .zz2_MenuQuickLaunch_2
        {
        }
        .zz2_MenuQuickLaunch_3
        {
            border-style: none;
        }
        .zz2_MenuQuickLaunch_4
        {
        }
        .zz2_MenuQuickLaunch_5
        {
            border-style: none;
        }
        .zz2_MenuQuickLaunch_6
        {
        }
        .zz2_MenuQuickLaunch_7
        {
        }
        .zz2_MenuQuickLaunch_8
        {
        }
        .zz2_MenuQuickLaunch_9
        {
            border-style: none;
        }
        .zz2_MenuQuickLaunch_10
        {
        }
        .zz2_MenuQuickLaunch_11
        {
            border-style: none;
        }
        .zz2_MenuQuickLaunch_12
        {
        }
        .zz3_QuickLaunchMenu_0
        {
            background-color: white;
            visibility: hidden;
            display: none;
            position: absolute;
            left: 0px;
            top: 0px;
        }
        .zz3_QuickLaunchMenu_1
        {
            text-decoration: none;
        }
        .zz3_QuickLaunchMenu_2
        {
        }
        .zz3_QuickLaunchMenu_3
        {
            border-style: none;
        }
        .zz3_QuickLaunchMenu_4
        {
        }
        .zz3_QuickLaunchMenu_5
        {
            border-style: none;
        }
        .zz3_QuickLaunchMenu_6
        {
        }
        .zz3_QuickLaunchMenu_7
        {
        }
        .zz3_QuickLaunchMenu_8
        {
        }
        .zz3_QuickLaunchMenu_9
        {
            border-style: none;
        }
        .zz3_QuickLaunchMenu_10
        {
        }
        .zz3_QuickLaunchMenu_11
        {
            border-style: none;
        }
        .zz3_QuickLaunchMenu_12
        {
        }
    </style>
</head>
<body scroll="yes" onload="javascript:if (typeof(_spBodyOnLoadWrapper) != 'undefined') _spBodyOnLoadWrapper();">
    <form id="Form1" name="formmain" runat="server">
    <table class="ms-main" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
        <tr>
            <td>
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tbody>
                        <tr>
                            <td colspan="4" class="ms-globalbreadcrumb" style="height: 23px">
                                <span id="TurnOnAccessibility" style=""><a id="linkTurnOnAcc" href="#" class="ms-skip"
                                    önclick="SetIsAccessibilityFeatureEnabled(true);UpdateAccessibilityUI();document.getElementById('linkTurnOffAcc').focus();return false;">
                                    Turn on more accessible mode</a> </span><span id="TurnOffAccessibility" style="display: none">
                                        <a id="linkTurnOffAcc" href="#" class="ms-acclink" önclick="SetIsAccessibilityFeatureEnabled(false);UpdateAccessibilityUI();document.getElementById('linkTurnOnAcc').focus(); return false;">
                                            Turn off more accessible mode</a> </span><span><a href="java<!-- no -->script:;"
                                                önclick="javascript:this.href='#mainContent';" class="ms-skip" accesskey="X">Skip
                                                to main content</a> </span>
                                <table class="ms-globalleft" cellpadding="0" cellspacing="0" height="100%">
                                    <tbody>
                                        <tr>
                                            <td class="ms-globallinks" style="padding-removed 2px; height: 100%;" valign="middle">
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
        <tr>
            <td class="ms-globalTitleArea">
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tbody>
                        <tr>
                            <td id="GlobalTitleAreaImage" class="ms-titleimagearea">
                                <img id="ctl00_onetidHeadbnnr0" src="Images/Fluor.jpg" alt="Fluor Business Online"
                                    style="border-width: 0px; height: 12px;">
                            </td>
                            <td class="ms-sitetitle" width="100%">
                                <h1 class="ms-sitetitle">
                                    <asp:Label ID="lblPageTitle" runat="server" CssClass="ms-sitetitle" Height="24px"
                                        Width="196px"></asp:Label>
                                </h1>
                            </td>
                            <td style="padding-removed 8px;" valign="top">
                                <table class="s4-wpTopTable" border="0" cellpadding="0" cellspacing="0" width="100%">
                                    <tbody>
                                        <tr>
                                            <td>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
        <tr>
            <td id="onetIdTopNavBarContainer" class="ms-bannerContainer" width="100%" style="height: 55px">
                <!--Top bar-->
                <table id="zz1_TopNavigationMenu" class="ms-topNavContainer zz1_TopNavigationMenu_5 zz1_TopNavigationMenu_2"
                    border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                    <tbody>
                        <tr>
                            <td style="width: 99%; height: 4px;">
                                <div id="zz1_TopNavigationMenun1Items" class="zz1_TopNavigationMenu_0 zz1_TopNavigationMenu_8"
                                    style="removed 16px; removed 755px; height: 329px;" language="javascript" önclick="return zz1_TopNavigationMenun1Items_onclick()">
                                    <table border="0" cellpadding="0" cellspacing="0">
                                        <tbody>
                                            <tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)" önkeyup="Menu_Key(event)"
                                                title="Enterprise Applications Team Site" id="zz1_TopNavigationMenun5">
                                                <td>
                                                    <table class="ms-topNavFlyOuts zz1_TopNavigationMenu_7" border="0" cellpadding="0"
                                                        cellspacing="0" width="100%">
                                                        <tbody>
                                                            <tr>
                                                                <td style="white-space: nowrap; width: 100%; height: 19px;">
                                                                    <a class="zz1_TopNavigationMenu_1 ms-topNavFlyOuts zz1_TopNavigationMenu_6" href=""
                                                                        style="border-style: none; font-size: 1em;">Link here</a>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)" önkeyup="Menu_Key(event)"
                                                id="zz1_TopNavigationMenun6">
                                                <td>
                                                    <table class="ms-topNavFlyOuts zz1_TopNavigationMenu_7" border="0" cellpadding="0"
                                                        cellspacing="0" width="100%">
                                                        <tbody>
                                                            <tr>
                                                                <td style="white-space: nowrap; width: 100%;">
                                                                    <a class="zz1_TopNavigationMenu_1 ms-topNavFlyOuts zz1_TopNavigationMenu_6" href=""
                                                                        style="border-style: none; font-size: 1em;">Link Here</a>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)" önkeyup="Menu_Key(event)"
                                                id="zz1_TopNavigationMenun7">
                                                <td>
                                                    <table class="ms-topNavFlyOuts zz1_TopNavigationMenu_7" border="0" cellpadding="0"
                                                        cellspacing="0" width="100%">
                                                        <tbody>
                                                            <tr>
                                                                <td style="white-space: nowrap; width: 100%;">
                                                                    <a class="zz1_TopNavigationMenu_1 ms-topNavFlyOuts zz1_TopNavigationMenu_6" href=""
                                                                        style="border-style: none; font-size: 1em;">Link Here</a>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)" önkeyup="Menu_Key(event)"
                                                id="zz1_TopNavigationMenun8">
                                                <td>
                                                    <table class="ms-topNavFlyOuts zz1_TopNavigationMenu_7" border="0" cellpadding="0"
                                                        cellspacing="0" width="100%">
                                                        <tbody>
                                                            <tr>
                                                                <td style="white-space: nowrap; width: 100%; height: 19px;">
                                                                    <a class="zz1_TopNavigationMenu_1 ms-topNavFlyOuts zz1_TopNavigationMenu_6" href=""
                                                                        style="border-style: none; font-size: 1em;">Link here</a>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)" önkeyup="Menu_Key(event)"
                                                id="zz1_TopNavigationMenun9">
                                                <td>
                                                    <table class="ms-topNavFlyOuts zz1_TopNavigationMenu_7" border="0" cellpadding="0"
                                                        cellspacing="0" width="100%">
                                                        <tbody>
                                                            <tr>
                                                                <td style="white-space: nowrap; width: 100%;">
                                                                    <a class="zz1_TopNavigationMenu_1 ms-topNavFlyOuts zz1_TopNavigationMenu_6" href=""
                                                                        style="border-style: none; font-size: 1em;">Link Here</a>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)" önkeyup="Menu_Key(event)"
                                                id="zz1_TopNavigationMenun10">
                                                <td>
                                                    <table class="ms-topNavFlyOuts zz1_TopNavigationMenu_7" border="0" cellpadding="0"
                                                        cellspacing="0" width="100%">
                                                        <tbody>
                                                            <tr>
                                                                <td style="white-space: nowrap; width: 100%;">
                                                                    <a class="zz1_TopNavigationMenu_1 ms-topNavFlyOuts zz1_TopNavigationMenu_6" href=""
                                                                        style="border-style: none; font-size: 1em;">Link Here</a>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    <div class="ms-topNavFlyOuts zz1_TopNavigationMenu_7 zz1_TopNavigationMenu_0" id="zz1_TopNavigationMenun1ItemsUp"
                                        onmouseover="PopOut_Up(this)" önmouseout="PopOut_Stop(this)" style="text-align: center;">
                                        <img src="Images/WebResource.gif" alt="Scroll up">
                                    </div>
                                    <div class="ms-topNavFlyOuts zz1_TopNavigationMenu_7 zz1_TopNavigationMenu_0" id="zz1_TopNavigationMenun1ItemsDn"
                                        onmouseover="PopOut_Down(this)" önmouseout="PopOut_Stop(this)" style="text-align: center;">
                                        <img src="Images/WebResource_002.gif" alt="Scroll down">
                                    </div>
                                </div>
                                <div id="zz1_TopNavigationMenun4Items" class="zz1_TopNavigationMenu_0 zz1_TopNavigationMenu_8"
                                    style="removed 3px; removed 557px; height: 263px;">
                                    <table border="0" cellpadding="0" cellspacing="0" style="height: 242px">
                                        <tbody>
                                            <tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)" önkeyup="Menu_Key(event)"
                                                id="zz1_TopNavigationMenun11">
                                                <td>
                                                    <table class="ms-topNavFlyOuts zz1_TopNavigationMenu_7" border="0" cellpadding="0"
                                                        cellspacing="0" width="100%">
                                                        <tbody>
                                                            <tr>
                                                                <td style="white-space: nowrap; width: 100%;">
                                                                    <a class="zz1_TopNavigationMenu_1 ms-topNavFlyOuts zz1_TopNavigationMenu_6" href="../Admin/Userlist.aspx"
                                                                        style="border-style: none; font-size: 1em;">User List</a>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)" önkeyup="Menu_Key(event)"
                                                id="zz1_TopNavigationMenun12">
                                                <td>
                                                    <table class="ms-topNavFlyOuts zz1_TopNavigationMenu_7" border="0" cellpadding="0"
                                                        cellspacing="0" width="100%">
                                                        <tbody>
                                                            <tr>
                                                                <td style="white-space: nowrap; width: 100%;">
                                                                    <a class="zz1_TopNavigationMenu_1 ms-topNavFlyOuts zz1_TopNavigationMenu_6" href=""
                                                                        style="border-style: none; font-size: 1em;">Link Here</a>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)" önkeyup="Menu_Key(event)"
                                                id="zz1_TopNavigationMenun13">
                                                <td>
                                                    <table class="ms-topNavFlyOuts zz1_TopNavigationMenu_7" border="0" cellpadding="0"
                                                        cellspacing="0" width="100%">
                                                        <tbody>
                                                            <tr>
                                                                <td style="white-space: nowrap; width: 100%;">
                                                                    <a class="zz1_TopNavigationMenu_1 ms-topNavFlyOuts zz1_TopNavigationMenu_6" href=""
                                                                        style="border-style: none; font-size: 1em;">Link Here</a>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)" önkeyup="Menu_Key(event)"
                                                id="zz1_TopNavigationMenun14">
                                                <td>
                                                    <table class="ms-topNavFlyOuts zz1_TopNavigationMenu_7" border="0" cellpadding="0"
                                                        cellspacing="0" width="100%">
                                                        <tbody>
                                                            <tr>
                                                                <td style="white-space: nowrap; width: 100%;">
                                                                    <a class="zz1_TopNavigationMenu_1 ms-topNavFlyOuts zz1_TopNavigationMenu_6" href=""
                                                                        style="border-style: none; font-size: 1em;">Link Here</a>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)" önkeyup="Menu_Key(event)"
                                                id="zz1_TopNavigationMenun15">
                                                <td style="height: 52px">
                                                    <table class="ms-topNavFlyOuts zz1_TopNavigationMenu_7" border="0" cellpadding="0"
                                                        cellspacing="0" width="100%">
                                                        <tbody>
                                                            <tr>
                                                                <td style="white-space: nowrap; width: 100%;">
                                                                    <a class="zz1_TopNavigationMenu_1 ms-topNavFlyOuts zz1_TopNavigationMenu_6" href=""
                                                                        style="border-style: none; font-size: 1em;">Link here</a>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    <div class="ms-topNavFlyOuts zz1_TopNavigationMenu_7 zz1_TopNavigationMenu_0" id="zz1_TopNavigationMenun4ItemsUp"
                                        onmouseover="PopOut_Up(this)" önmouseout="PopOut_Stop(this)" style="text-align: center;">
                                        <img src="images/WebResource.gif" alt="Scroll up">
                                    </div>
                                    <div class="ms-topNavFlyOuts zz1_TopNavigationMenu_7 zz1_TopNavigationMenu_0" id="zz1_TopNavigationMenun4ItemsDn"
                                        onmouseover="PopOut_Down(this)" önmouseout="PopOut_Stop(this)" style="text-align: center;">
                                        <img src="Images/WebResource_002.gif" alt="Scroll down">
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <table class="zz1_TopNavigationMenu_5" border="0" cellpadding="0" cellspacing="0"
                    style="width: 100%; height: 30px;">
                    <tbody>
                        <tr>
                            <td onkeyup="Menu_Key(event)" onmouseout="Menu_Unhover(this)" önmouseover="Menu_HoverStatic(this)"
                                style="width: 56px; height: 40px">
                                <table class="ms-topnav zz1_TopNavigationMenu_4" border="0" cellpadding="0" cellspacing="0"
                                    width="100%">
                                    <tbody>
                                        <tr>
                                            <td style="white-space: nowrap;">
                                                <a class="zz1_TopNavigationMenu_1 ms-topnav zz1_TopNavigationMenu_3" href="" style="border-style: none;
                                                    font-size: 1em;">Home</a>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                            <td onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)" önkeyup="Menu_Key(event)"
                                id="zz1_TopNavigationMenun1" style="height: 40px; width: 88px;">
                                <table class="ms-topnav zz1_TopNavigationMenu_4" border="0" cellpadding="0" cellspacing="0"
                                    width="100%">
                                    <tbody>
                                        <tr>
                                            <td style="white-space: nowrap;">
                                                <a class="zz1_TopNavigationMenu_1 ms-topnav zz1_TopNavigationMenu_3" href="" style="border-style: none;
                                                    font-size: 1em;">Training Plan</a>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                            <td onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)" önkeyup="Menu_Key(event)"
                                id="zz1_TopNavigationMenun2" style="height: 40px; width: 80px;">
                                <table class="ms-topnav zz1_TopNavigationMenu_4" border="0" cellpadding="0" cellspacing="0"
                                    width="100%">
                                    <tbody>
                                        <tr>
                                            <td style="white-space: nowrap;">
                                                <a class="zz1_TopNavigationMenu_1 ms-topnav zz1_TopNavigationMenu_3" href="" style="border-style: none;
                                                    font-size: 1em;">Courses</a>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                            <td onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)" önkeyup="Menu_Key(event)"
                                id="zz1_TopNavigationMenun3" style="height: 40px; width: 60px;">
                                <table class="ms-topnav zz1_TopNavigationMenu_4" border="0" cellpadding="0" cellspacing="0"
                                    width="100%">
                                    <tbody>
                                        <tr>
                                            <td style="white-space: nowrap;">
                                                <a class="zz1_TopNavigationMenu_1 ms-topnav zz1_TopNavigationMenu_3" href="" style="border-style: none;
                                                    font-size: 1em;">About Us</a>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                            <td onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)" önkeyup="Menu_Key(event)"
                                id="zz1_TopNavigationMenun4" style="height: 40px; width: 100px;">
                                <table class="ms-topnav zz1_TopNavigationMenu_4" border="0" cellpadding="0" cellspacing="0"
                                    width="100%">
                                    <tbody>
                                        <tr>
                                            <td style="white-space: nowrap; width: 84px;">
                                                <a class="zz1_TopNavigationMenu_1 ms-topnav zz1_TopNavigationMenu_3" href="" style="border-style: none;
                                                    font-size: 1em; removed: text;">Administrator</a>
                                            </td>
                                            <td style="width: 0pt;">
                                                <img src="Images/menudark.gif" alt="" style="border-style: none; vertical-align: middle;">
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                            <td onkeyup="Menu_Key(event)" onmouseout="Menu_Unhover(this)" önmouseover="Menu_HoverStatic(this)"
                                style="height: 40px" colspan="5">
                                <div style="height: 20px; background-color: gainsboro">
                                </div>
                            </td>
                            <td onkeyup="Menu_Key(event)" onmouseout="Menu_Unhover(this)" önmouseover="Menu_HoverStatic(this)"
                                style="width: 100px; height: 40px">
                                <table class="ms-topnav zz1_TopNavigationMenu_4" border="0" cellpadding="0" cellspacing="0"
                                    width="100%">
                                    <tbody>
                                        <tr>
                                            <td style="white-space: nowrap;">
                                                <a class="zz1_TopNavigationMenu_1 ms-topnav zz1_TopNavigationMenu_3" href="" style="border-style: none;
                                                    font-size: 1em; removed: text;"></a>
                                            </td>
                                            <td style="width: 0pt;">
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="4" id="mpdmconsole" class="ms-consolemptablerow" style="height: 2px">
            </td>
        </tr>
        <tr height="100%">
            <td>
                <table cellpadding="0" cellspacing="0" height="100%" width="100%">
                    <tr>
                        <td class="ms-titlearealeft" id="TitleAreaImageCell" nowrap="nowrap" valign="middle"
                            style="height: 22px; width: 114px;">
                            <div style="height: 100%" class="ms-titleareaframe">
                            </div>
                        </td>
                        <td class="ms-titleareaframe" id="TitleAreaFrameClass" style="height: 22px">
                            <div class="ms-titleareaframe">
                                <img src="Images/blank.gif" alt="" height="100%" width="1"></div>
                        </td>
                        <td id="onetidPageTitleAreaFrame" class="ms-areaseparator" style="width: 100%; height: 22px;"
                            nowrap="nowrap" valign="top">
                        </td>
                        <td class="ms-titlearearight" style="height: 22px">
                            <div style="height: 100%;" class="ms-titleareaframe">
                                <img src="Images/blank.gif" alt="" height="1" width="1"></div>
                        </td>
                    </tr>
                    <tr>
                        <td class="ms-leftareacell" id="LeftNavigationAreaCell" valign="top" style="height: 1487px;
                            width: 114px;">
                            <table class="ms-nav" cellpadding="0" cellspacing="0" height="100%" width="100%">
                                <tbody>
                                    <tr>
                                        <td>
                                            <table class="ms-navframe" border="0" cellpadding="0" cellspacing="0" height="100%">
                                                <tbody>
                                                    <tr valign="top">
                                                        <td width="4px">
                                                            <img src="images/blank.gif" alt="" height="1" width="4">
                                                        </td>
                                                        <td valign="top" width="100%">
                                                            <div style="padding-removed1px">
                                                                <div class="ms-quicklaunchouter">
                                                                    <div class="ms-quickLaunch" style="width: 100%">
                                                                        <table id="zz2_MenuQuickLaunch" class="ms-navSubMenu1 zz2_MenuQuickLaunch_7 zz2_MenuQuickLaunch_2"
                                                                            border="0" cellpadding="0" cellspacing="0">
                                                                            <tbody>
                                                                                <tr onmouseover="Menu_HoverRoot(this)" onmouseout="Menu_Unhover(this)" önkeyup="Menu_Key(event)"
                                                                                    id="zz2_MenuQuickLaunchn0">
                                                                                    <td>
                                                                                        <table class="ms-navheader zz2_MenuQuickLaunch_4" border="0" cellpadding="0" cellspacing="0"
                                                                                            width="100%">
                                                                                            <tbody>
                                                                                                <tr>
                                                                                                    <td style="width: 100%;">
                                                                                                        <a class="zz2_MenuQuickLaunch_1 ms-navheader zz2_MenuQuickLaunch_3" href="" style="border-style: none;
                                                                                                            font-size: 1em;">Courses</a>
                                                                                                    </td>
                                                                                                </tr>
                                                                                            </tbody>
                                                                                        </table>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td>
                                                                                        <table class="ms-navSubMenu2 zz2_MenuQuickLaunch_8" border="0" cellpadding="0" cellspacing="0"
                                                                                            width="100%">
                                                                                            <tbody>
                                                                                                <tr onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)" önkeyup="Menu_Key(event)"
                                                                                                    id="zz2_MenuQuickLaunchn1">
                                                                                                    <td>
                                                                                                        <table class="ms-navitem zz2_MenuQuickLaunch_6 ms-selectednav zz2_MenuQuickLaunch_12"
                                                                                                            border="0" cellpadding="0" cellspacing="0" width="100%">
                                                                                                            <tbody>
                                                                                                                <tr>
                                                                                                                    <td style="width: 100%;">
                                                                                                                        <a class="zz2_MenuQuickLaunch_1 ms-navitem zz2_MenuQuickLaunch_5 ms-selectednav zz2_MenuQuickLaunch_11"
                                                                                                                            href="" style="border-style: none; font-size: 1em;">Add Courses</a>
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                            </tbody>
                                                                                                        </table>
                                                                                                    </td>
                                                                                                </tr>
                                                                                                <tr onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)" önkeyup="Menu_Key(event)"
                                                                                                    id="zz2_MenuQuickLaunchn2">
                                                                                                    <td>
                                                                                                        <table class="ms-navitem zz2_MenuQuickLaunch_6" border="0" cellpadding="0" cellspacing="0"
                                                                                                            width="100%">
                                                                                                            <tbody>
                                                                                                                <tr>
                                                                                                                    <td style="width: 100%;">
                                                                                                                        <a class="zz2_MenuQuickLaunch_1 ms-navitem zz2_MenuQuickLaunch_5" href="" style="border-style: none;
                                                                                                                            font-size: 1em;">Edit Courses</a>
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                            </tbody>
                                                                                                        </table>
                                                                                                    </td>
                                                                                                </tr>
                                                                                                <tr onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)" önkeyup="Menu_Key(event)"
                                                                                                    id="zz2_MenuQuickLaunchn3">
                                                                                                    <td>
                                                                                                        <table class="ms-navitem zz2_MenuQuickLaunch_6" border="0" cellpadding="0" cellspacing="0"
                                                                                                            width="100%">
                                                                                                            <tbody>
                                                                                                                <tr>
                                                                                                                    <td style="width: 100%;">
                                                                                                                        <a class="zz2_MenuQuickLaunch_1 ms-navitem zz2_MenuQuickLaunch_5" href="" style="border-style: none;
                                                                                                                            font-size: 1em;">Delete Courses</a>
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                            </tbody>
                                                                                                        </table>
                                                                                                    </td>
                                                                                                </tr>
                                                                                                <tr onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)" önkeyup="Menu_Key(event)"
                                                                                                    id="zz2_MenuQuickLaunchn4">
                                                                                                    <td style="height: 36px">
                                                                                                        <table class="ms-navitem zz2_MenuQuickLaunch_6" border="0" cellpadding="0" cellspacing="0"
                                                                                                            width="100%">
                                                                                                            <tbody>
                                                                                                                <tr>
                                                                                                                    <td style="width: 100%;">
                                                                                                                        <a class="zz2_MenuQuickLaunch_1 ms-navitem zz2_MenuQuickLaunch_5" href="" style="border-style: none;
                                                                                                                            font-size: 1em;">View Courses</a>
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                            </tbody>
                                                                                                        </table>
                                                                                                    </td>
                                                                                                </tr>
                                                                                                <tr onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)" önkeyup="Menu_Key(event)"
                                                                                                    id="zz2_MenuQuickLaunchn5">
                                                                                                    <td>
                                                                                                        <table class="ms-navitem zz2_MenuQuickLaunch_6" border="0" cellpadding="0" cellspacing="0"
                                                                                                            width="100%">
                                                                                                            <tbody>
                                                                                                                <tr>
                                                                                                                    <td style="width: 100%;">
                                                                                                                        <a class="zz2_MenuQuickLaunch_1 ms-navitem zz2_MenuQuickLaunch_5" href="" style="border-style: none;
                                                                                                                            font-size: 1em;">Link here</a>
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                            </tbody>
                                                                                                        </table>
                                                                                                    </td>
                                                                                                </tr>
                                                                                                <tr onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)" önkeyup="Menu_Key(event)"
                                                                                                    id="zz2_MenuQuickLaunchn6">
                                                                                                    <td>
                                                                                                        <table class="ms-navitem zz2_MenuQuickLaunch_6" border="0" cellpadding="0" cellspacing="0"
                                                                                                            width="100%">
                                                                                                            <tbody>
                                                                                                                <tr>
                                                                                                                    <td style="width: 100%;">
                                                                                                                        <a class="zz2_MenuQuickLaunch_1 ms-navitem zz2_MenuQuickLaunch_5" href="" style="border-style: none;
                                                                                                                            font-size: 1em;">Link here</a>
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                            </tbody>
                                                                                                        </table>
                                                                                                    </td>
                                                                                                </tr>
                                                                                            </tbody>
                                                                                        </table>
                                                                                    </td>
                                                                                    <table border="0" cellpadding="0" cellspacing="0">
                                                                                        <tbody>
                                                                                            <tr height="5px">
                                                                                                <td>
                                                                                                </td>
                                                                                            </tr>
                                                                                        </tbody>
                                                                                    </table>
                                                                                    <div class="ms-quicklaunchouter">
                                                                                    </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2">
                                                            <img src="Images/blank.gif" alt="" height="1" width="138">
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </td>
                        <td style="height: 1487px">
                            <div style="height: 100%;" class="ms-pagemargin">
                                <img src="Images/blank.gif" alt="" height="1" width="10"></div>
                        </td>
                        <td valign="top" style="height: 1487px" runat="server" id="Td1">
                            <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
                            </asp:ContentPlaceHolder>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
    <input name="__spText1" title="text" style="display: none;" type="text">
    <input name="__spText2" title="text" style="display: none;" type="text">
    <script type="text/javascript">
//<![CDATA[
        var zz1_TopNavigationMenu_Data = new Object();
        zz1_TopNavigationMenu_Data.disappearAfter = 500;
        zz1_TopNavigationMenu_Data.horizontalOffset = 0;
        zz1_TopNavigationMenu_Data.verticalOffset = 0;
        zz1_TopNavigationMenu_Data.hoverClass = 'zz1_TopNavigationMenu_16 ms-topNavFlyOutsHover';
        zz1_TopNavigationMenu_Data.hoverHyperLinkClass = 'zz1_TopNavigationMenu_15 ms-topNavFlyOutsHover';
        zz1_TopNavigationMenu_Data.staticHoverClass = 'zz1_TopNavigationMenu_14 ms-topNavHover';
        zz1_TopNavigationMenu_Data.staticHoverHyperLinkClass = 'zz1_TopNavigationMenu_13 ms-topNavHover';
        if (typeof (overrideMenu_HoverStatic) == 'function' && typeof (Menu_HoverStatic) == 'function') {
            _spBodyOnLoadFunctionNames.push('enableFlyoutsAfterDelay');
            Menu_HoverStatic = overrideMenu_HoverStatic;
        }
        var zz2_MenuQuickLaunch_Data = new Object();
        zz2_MenuQuickLaunch_Data.disappearAfter = 500;
        zz2_MenuQuickLaunch_Data.horizontalOffset = 0;
        zz2_MenuQuickLaunch_Data.verticalOffset = 0;
        var zz3_QuickLaunchMenu_Data = new Object();
        zz3_QuickLaunchMenu_Data.disappearAfter = 500;
        zz3_QuickLaunchMenu_Data.horizontalOffset = 0;
        zz3_QuickLaunchMenu_Data.verticalOffset = 0;
        var _spFormDigestRefreshInterval = 1440000; //
    </script>
</body>
</html>



Your Content Page

XML
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <script type="text/javascript">

        var Grid = null
        var UpperBound = 0;
        var LowerBound = 1;
        var CollapseImage = 'Images/plus.gif';
        var ExpandImage = 'Images/minus.gif';
        var Rows = null;
        var n = 1;
        var TimeSpan = 25;

        window.onload = function toggleDiv(divid) {

            if (document.getElementById(divid).style.display == 'none') {
                document.getElementById(divid).style.display = 'block';


            } else {
                document.getElementById(divid).style.display = 'none';
            }
        }
        {
            Grid = document.getElementById('<%= this.grdCategory %>');
            UpperBound = parseInt('<%= this.grdCategory.Rows.Count %>');
            Rows = Grid.getElementsByTagName('tr');
        }

        function Toggle(Image, Index) {
            ToggleImage(Image, Index);
            ToggleColumns(Image, Index);
        }

        function ToggleImage(Image, Index) {
            //alert("Current image src = " + Image.src);
            //alert(Image.src.indexOf(ExpandImage));
            if (Image.src.indexOf(ExpandImage) > -1) {
                //alert("Collapse :: " + CollapseImage);
                Image.src = CollapseImage;
                Image.title = 'Collapse';
                n = LowerBound;
                Image.IsExpanded = true;

            } else {
                //alert("Expand :: " + ExpandImage);

                Image.src = ExpandImage;
                Image.title = 'Expand';
                n = UpperBound;
                Image.IsExpanded = false;
            }

        }

        function ToggleColumns(Image, Index) {
            if (n < LowerBound || n > UpperBound) return;

            Rows[n].getElementsByTagName('td')[Index].style.visibility = Rows[n].getElementsByTagName('td')[Index].style.visibility == '' || Rows[n].getElementsByTagName('td')[Index].style.visibility == 'visible' ? 'hidden' : 'visible';
            if (Image.IsExpanded) n++; else n--;
            setTimeout(function () { ToggleColumns(Image, Index); }, TimeSpan);
        }



    </script>
   <%-- <script type="text/javascript">
        function daya() {
            document.getElementById('<%=button2.ClientID%>').click();
        }
        function CloseDialog() {
            $find("OrderDetailClient").hide();
        }
    </script>--%>
    <br />
    <div>
        <br />
        <div class="hr">
            <hr>
        </div>
        <asp:Label ID="Label4" runat="server" Font-Bold="True" Text="Training Plan Year:"></asp:Label>
        <br />
        <asp:DropDownList ID="drpdwnYear" runat="server" Width="173px" AutoPostBack="True">
        </asp:DropDownList>
        <asp:Label ID="Label5" runat="server" ForeColor="#DBE9EB" Text="|" Width="5px"></asp:Label>
        <asp:Button ID="bntCreateYear" runat="server" Text="Create" Width="79px" Height="20px"
            Font-Names="verdana,arial,helvetica,sans-serif" Font-Size="XX-Small" /><br />
        <div class="hr2">
            <hr />
            <br />
        </div>
        <div class="hr3">
            <hr />
            <div class="hr">
                <hr>
            </div>
        </div>
        <asp:Label ID="Label6" runat="server" Font-Bold="True" Text="Add Course Category:"></asp:Label>
        <br />
        <asp:TextBox ID="txtcategory" runat="server" Width="335px" Font-Names="verdana,arial,helvetica,sans-serif"
            Font-Size="XX-Small" Height="17px"></asp:TextBox>
        <asp:Button ID="btnCatAdd" runat="server" Text="Insert" Width="107px" Font-Names="verdana,arial,helvetica,sans-serif"
            Font-Size="XX-Small" Height="20px" />
        <br />
        <br />
    </div>
    <div>
        <asp:toolkitscriptmanager id="ToolkitScriptManager1" runat="server">
        </asp:toolkitscriptmanager>
        <div id="divwidth">
            <asp:autocompleteextender id="AutoCompleteExtender1" runat="server" minimumprefixlength="1"
                servicemethod="GetInfo" servicepath="WebService.asmx" targetcontrolid="txtcategory"
                completioninterval="10" completionlistcssclass="AutoExtender" completionlistitemcssclass="AutoExtenderList"
                completionlisthighlighteditemcssclass="AutoExtenderHighlight" completionlistelementid="divwidth"
                completionsetcount="10">
        </asp:autocompleteextender>
        </div>
        <div class="hr2">
            <hr />
        </div>
        <asp:UpdateProgress ID="UpdateProgress2" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
            <ProgressTemplate>
                <img alt="Update in Progress" src="Images/load.gif" height="30px" />
            </ProgressTemplate>
        </asp:UpdateProgress>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:GridView ID="grdCategory" runat="server" AutoGenerateColumns="False" Width="100%"
                    DataKeyNames="CourseCatID" Font-Names="verdana,arial,helvetica,sans-serif" Font-Size="8pt"
                    CellPadding="4" ForeColor="#333333" GridLines="None">
                    <Columns>
                        <asp:BoundField HeaderText="CourseCatID" DataField="CourseCatID" />
                        <asp:TemplateField HeaderText="Course Category">
                            <ItemTemplate>
                                <a href="java<!-- no -->script:toggleDiv('mydiv<%# Eval("CourseCatID")%>')">
                                    <asp:Image ID="img" onclick="javascript:Toggle(this);" runat="server" ImageUrl="~/Images/minus.gif"
                                        ToolTip="Collapse" Width="7px" Height="7px" ImageAlign="AbsMiddle" /></a>
                                <asp:Label ID="lbllastname" Height="15px" runat="server" Text='<%# Eval("CourseCatName")%>'> </asp:Label>
                                <div id="mydiv<%# Eval("CourseCatID")%>">
                                    <br />
                                    <asp:ImageButton ID="ImageAdd" Height="17px" ImageUrl="Images/addCourse.png" runat="server"
                                        CommandName="cmdAdd" CommandArgument='<%# Eval("CourseCatID") %>'  /><br />
                                    <br />
                                    <asp:GridView ID="grdCourse" runat="server" Width="99%" HorizontalAlign="Right"
                                        AutoGenerateColumns="False" align="center" DataKeyNames="CourseCode" Font-Names="verdana,arial,helvetica,sans-serif"
                                        Font-Size="8pt" BackColor="White" GridLines="Vertical">
                                        <Columns>
                                            <asp:TemplateField HeaderText="CourseName" HeaderStyle-HorizontalAlign="Left">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblCoursename" runat="server" Text='<%# Eval("CourseName")%>' Width="300px"
                                                        Height="10px"> </asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Course Code" HeaderStyle-HorizontalAlign="Left">
                                                <ItemTemplate>
                                                    <asp:Label ID="lbllastname" runat="server" Text='<%# Eval("CourseCode")%>' Height="10px"> </asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:BoundField HeaderText="Duration" DataField="Duration" HeaderStyle-HorizontalAlign="Left" />
                                            <asp:TemplateField HeaderText="Edit" HeaderStyle-HorizontalAlign="Left">
                                                <ItemTemplate>
                                                    <asp:ImageButton ID="ImageLink" Height="15px" ImageUrl="Images/edit.png" runat="server"
                                                        CommandName="cmdlink" />
                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Left" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Delete" HeaderStyle-HorizontalAlign="Left">
                                                <ItemTemplate>
                                                    <asp:ImageButton ID="ImageDeleteCourse" Height="15px" ImageUrl="Images/Delete.png"
                                                        runat="server" CommandName="cmdDelete" CommandArgument='<%# Eval("CourseCode")%>'
                                                         OnClientClick="return confirm('Are you sure to delete this Course?')" /><!-- onclick="ImageDeleteCourse_Click" -->
                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Left" />
                                            </asp:TemplateField>
                                            <asp:CommandField ShowDeleteButton="True" />
                                        </Columns>
                                        <RowStyle BackColor="White" ForeColor="#333333" />
                                        <FooterStyle BackColor="White" ForeColor="#333333" />
                                        <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
                                        <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
                                        <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
                                    </asp:GridView>
                                </div>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Delete">
                            <ItemTemplate>
                                <asp:ImageButton ID="ImageDelete" Height="15px" ImageUrl="Images/Delete.png" runat="server"
                                    CommandName="cmdDelete" CommandArgument='<%# Eval("CourseCatID") %>' Width="16px"
                                     /><br />
                            </ItemTemplate>
                            <ItemStyle VerticalAlign="Top" />
                        </asp:TemplateField>
                        <asp:CommandField ShowDeleteButton="True" />
                        <asp:TemplateField>
                            <ItemTemplate>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <RowStyle BackColor="#EFFDFF" ForeColor="#333333" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" />
                    <EditRowStyle BackColor="#999999" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#333333" VerticalAlign="Middle" />
                </asp:GridView>
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:Label ID="Label10" runat="server" ForeColor="#DBE9EB" Text="|" Width="5px"></asp:Label>
        <asp:Label ID="Label11" runat="server" ForeColor="#DBE9EB" Text="|" Width="5px"></asp:Label>
        <br />
    </div>
    <br />
    <asp:Button ID="btnShowPopup" runat="server" />
    <asp:modalpopupextender id="mdlPopup" runat="server" targetcontrolid="btnShowPopup"
        backgroundcssclass="black_show" popupcontrolid="CntrlPanel" dropshadow="true"
        behaviorid="OrderDetailClient">
                                     </asp:modalpopupextender>
    <div id="CntrlPanel" style="display: none" class="popup" size="50px" runat="server">
        <asp:UpdatePanel ID="UPanel" runat="server">
            <ContentTemplate>
                <asp:Panel ID="Panel1" runat="server">
                    <asp:Label ID="lblResult" runat="server" Visible="false" ForeColor="Red" Font-Bold="true"></asp:Label><br />
                    <asp:Label ID="Label7" runat="server" Text="Search: " Width="100px"></asp:Label>
                    <asp:TextBox ID="txtSearchBox" onChange="daya();" Width="250px" runat="server" Font-Names="verdana,arial,helvetica,sans-serif"
                        Font-Size="XX-Small"></asp:TextBox>
                    <br />
                    <br />
                    <asp:Label ID="Label1" runat="server" Text="Course Code: " Width="100px"></asp:Label>
                    <asp:TextBox ID="txtCourseCode" runat="server" Width="173px" Font-Names="verdana,arial,helvetica,sans-serif"
                        Font-Size="XX-Small"></asp:TextBox>
                    <asp:CheckBox ID="checkMultiCode" Text="MultiCode" runat="server" Font-Names="verdana,arial,helvetica,sans-serif"
                        Font-Size="XX-Small" />
                    <div style="removed: absolute; removed455px; removed65px; width: 50px">
                        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UPanel">
                            <ProgressTemplate>
                                <img alt="Update in Progress" src="Images/load.gif" height="30px" />
                            </ProgressTemplate>
                        </asp:UpdateProgress>
                    </div>
                    <br />
                    <br />
                    <asp:Label ID="Label2" runat="server" Text="Course Name: " Width="100px"></asp:Label>
                    <asp:TextBox ID="txtCourseName" runat="server" Width="250px" Font-Names="verdana,arial,helvetica,sans-serif"
                        Font-Size="XX-Small"></asp:TextBox>
                    <br />
                    <br />
                    <asp:Label ID="Label3" runat="server" Text="Duration: " Width="100px"></asp:Label>
                    <asp:TextBox ID="txtCourseDuration" runat="server" Width="250px" Font-Names="verdana,arial,helvetica,sans-serif"
                        Font-Size="XX-Small"></asp:TextBox>
                    <br />
                    <br />
                    <br />
                    <asp:Button ID="ButtonSave" runat="server" HorizontalAlign="right" Text="Save" Enabled="false"
                        align="right" OnClientClick="CloseDialog()" />
                    <asp:Button ID="btnCancel" runat="server" align="right" Text="Cancel" />
                    <asp:Button ID="Button2" runat="server" align="right" Text="Cancel" Style="display: None" />
                    <br />
                    <br />
                    <asp:TextBox ID="txtCourseCatID" Style="display: none" runat="server"></asp:TextBox>
                    <asp:TextBox ID="txtCourseID" Style="display: none" runat="server"></asp:TextBox>
                    <asp:TextBox ID="txtCode" Style="display: none" runat="server"></asp:TextBox>
                    <div id="div1">
                        <asp:autocompleteextender id="AutoCompleteExtender2" runat="server" targetcontrolid="txtSearchBox"
                            completionlistcssclass="AutoExtender" completionlistitemcssclass="AutoExtenderList"
                            completionlisthighlighteditemcssclass="AutoExtenderHighlight" completionlistelementid="div1"
                            completionsetcount="10" servicepath="WebService.asmx" servicemethod="CourseCode"
                            completioninterval="10" minimumprefixlength="1">
        </asp:autocompleteextender>
                    </div>
                </asp:Panel>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>





Hope this helps
 
Share this answer
 
Comments
Ariel Riyo 13-Dec-11 18:49pm    
thank you sir. i will try it today. :)
Ariel Riyo 18-Dec-11 18:07pm    
Sir, tried this code and it still doesnt cover the master page. what should i do?

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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