Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I use some condition in my aspx master page like database command then use some loop and condition , but when i debug in this website in F10 its work corectly but i use F5 direct it should not sohw corect result:-


XML
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage_MasterPage"  %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="MasterDataModuleLogic" %>
<%@ Import Namespace="System" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head id="Head1" runat="server">
   <meta http-equiv="X-UA-Compatible" content="IE=9" />
    <title></title>

 <%--//List<string>  menu = new List<string>();--%>
  <script runat="server">
      static int[] menu;
      static int A1=0,A2=0,A3=0,A4=0,A5=0,A6=0,A7=0;
      static int E1 = 0, E2 = 0, E3 = 0, E4 = 0, E5 = 0, P1 = 0, P2 = 0, P3 = 0, Q1 = 0, Q2 = 0, Q3 = 0, Q4 = 0, Q5 = 0, Q6 = 0, R1 = 0, R2 = 0, R3 = 0, R4 = 0, R5 = 0, R6 = 0,R7=0, D1 = 0, D2 = 0, D3 = 0, D4 = 0, Y1 = 0, Y2 = 0, Y3 = 0;
      protected void Page_Load(object sender, System.EventArgs e)
      {
          int i = 0;
          MasterDataModuleLogic.login lng = new MasterDataModuleLogic.login();


          if (!Page.IsPostBack)
          {
              DataTable dt = lng.Getlogin(Session["UserID"].ToString());
              if (dt != null && dt.Rows.Count > 0)
              {
                  DataTable dt1 = lng.Getmenu(Session["UserID"].ToString());
                  if (dt1 != null && dt1.Rows.Count > 0)
                  {
                      menu = new int[dt1.Rows.Count];
                      for (i = 0; i < dt1.Rows.Count; i++)
                      {
                          menu[i] = Convert.ToInt32(dt1.Rows[i][1]);
                      }
                  }
              }
          }
      }
  </script>
    <script src="http://www.google.com/jsapi">

     </script>
    <script>

        google.load("jquery", "1.3.2");

        google.load("jqueryui", "1.7.2");

</script>
    <link rel="stylesheet" href="../themes/base/jquery.ui.all.css"/>
    <script type="text/javascript" language="javascript">
        $( function() {
            $("#accordion").accordion({
                collapsible: false
            });


        });
    </script><link rel="Shortcut Icon" href="../Images/favicon.ico"  /><script src="../js/jquery-1.3.2.min.js"  type="text/javascript" language="javascript"> </script>
    <script type="text/javascript" language="javascript">
        $(document).ready(function () {
            $("#accordion").accordion();
        });
    </script>
    <style type="text/css">
        .pnl_in
        {
            background: -moz-linear-gradient(#FCFDFE, #F4F8FC) repeat scroll 0 0 #FCFDFE;
            border: 1px solid #C9DDF2;
            border-radius: 0px 0px 0px 5px;
            display: block;
            float: left;
            margin-top: 0px;
            vertical-align: top;
            width: 0px;
            font-family: Arial;
            padding-top: 0px;
            padding-left: 0px;
            padding-bottom: 5px;
            font-size: 12px;
        }
        .in_menu_head
        {
            background: url("images/newbtn_middle.png") repeat-x scroll 0 0 #B9DCFF;
            border: 1px solid #5A7F97;
            height: 0px;
            padding-top: 0px;
            padding-left: 0px;
            padding-bottom: 5px;
            font-size: 14px;
            font-weight: bold;
            text-align: left;
        }
        .accordionC
        {
            background-color: White;
            border-top: none;
            padding: 0px;
            padding-top: 0px;
            color: Black;
            text-decoration: none;
            font-family: Arial;
            font-size: 13px;
            color: black;
            text-align: left;
        }
        .accordionLink
        {
            color: Black;
            text-decoration: none;
            font-family: Arial;
            font-size: 12px;
        }
        .pnl_Container
        {
            vertical-align: top;
            height: 0px;
            overflow: auto;
        }
        .rt
        {
            background: url("images/btnCancel.png") repeat-x scroll 0 0 #B9DCFF;
        }
        #div_salestab:hover
        {
            background-image: url('images/nav_link_hover.png');
            background-repeat: repeat-x;
        }
        #div_FAtab:hover
        {
            background-image: url('images/nav_link_hover.png');
            background-repeat: repeat-x;
        }
        #div_Procurementtab:hover
        {
            background-image: url('images/nav_link_hover.png');
            background-repeat: repeat-x;
        }
        #div_Productiontab:hover
        {
            background-image: url('images/nav_link_hover.png');
            background-repeat: repeat-x;
        }

        .TaskGridHeader
        {
            background-image: url('images/nav_link_hover.png');
            background-repeat: repeat-x;
            font-family: Arial;
            font-size: 11px;
            font-weight: bold;
        }
        .TasksideInfo
        {
            background-image: url('images/nav_link_hover.png');
            background-repeat: repeat-x;
        }

    </style><link href="../css/HeroMaster.css" rel="stylesheet" type="text/css" /><%--custom css and js for left side navigation part--%><script src="../../js/jquery-1.8.2.cache.js" type="text/javascript"></script><script src="../../js/jquery-1.8.2.js" type="text/javascript"></script><link rel="stylesheet" href="/resources/demos/style.css" />
    <script type="text/javascript">
        $(document).ready(function () {

            //alert('start');
            var qrStr = window.location.search;
            var spQrStr = qrStr.substring(1);
            var arrQrStr = new Array();
            // splits each of pair
            var arr = spQrStr.split('&');

            for (var i = 0; i < arr.length; i++) {
                // splits each of field-value pair
                var index = arr[i].indexOf('=');
                var key = arr[i].substring(0, index);
                var val = arr[i].substring(index + 1);

                // saves each of field-value pair in an array variable
                arrQrStr[key] = val;
                //alert(key);
                //alert('hero');
            }
            //alert(arrQrStr[key]);

            if (arrQrStr[key] != '') {
                //$("#tabs").tabs("option", "selected", 2);
                $("#tabs").tabs({ selected: arrQrStr[key] });
            }
            else {
                $("#tabs").tabs({ fx: { opacity: "toggle"} });
            }




            $("#accordion").accordion({ clearStyle: true, autoHeight: false, collapsible: true });
            $("#accordion2").accordion({ clearStyle: true, autoHeight: false, collapsible: true });
            $("#accordion3").accordion({ clearStyle: true, autoHeight: false, collapsible: true });
            $("#accordion4").accordion({ clearStyle: true, autoHeight: false, collapsible: true });
            $("#accordion5").accordion({ clearStyle: true, autoHeight: false, collapsible: true });
            $("#accordion6").accordion({ clearStyle: true, autoHeight: false, collapsible: true });
            $("#accordion7").accordion({ clearStyle: true, autoHeight: false, collapsible: true });
            $("#accordion8").accordion({ clearStyle: true, autoHeight: false, collapsible: true });

            var state = false;
            $(".nav-toggle").click(function () {
                if (state) {
                    $("#Div2").animate({
                        width: 250
                    }, 1000);
                    $('#nav-toggle-previous').attr('src', '../../images/previous1.png');
                } else {
                    $("#Div2").animate({
                        width: 0
                    }, 1000);
                    $('#nav-toggle-previous').attr('src', '../../images/next1.png');
                }
                state = !state;
            });


            var state1 = false;
            $(".nav-toggle1").click(function () {
                if (state1) {
                    $("#Div1").animate({
                        width: 250
                    }, 1000);
                    $('#nav-toggle-previous1').attr('src', '../../images/next1.png');
                } else {
                    $("#Div1").animate({
                        width: 0
                    }, 1000);
                    $('#nav-toggle-previous1').attr('src', '../../images/previous1.png');
                }
                state1 = !state1;
            });

        });
    </script>
    <style type="text/css">

       #tabs
       {
         height: 95%;
         padding: 0;
       }
        .ui-tabs-panel
        {
         height: 381px;

        }
        .ui-tabs-nav
        {
          padding-left: 0px;
        }

        #ui-id-1, #ui-id-2, #ui-id-3, #ui-id-4, #ui-id-5, #ui-id-6, #ui-id-7, #ui-id-8
        {
         color: #15428B;
         font-size: 12px;
         font-weight: bold;
         width: 92%;
        }


        .module
        {
          width: 100%;
        }
        /*.ui-tabs-nav {
           position:absolute;
           bottom:0;
           width:100%
        }*/
        .ui-accordion-content
        {
          height: 50%;
        }

        .ui-tabs-nav
        {
          background: none;
          border: medium none;
        }

       .ui-tabs .ui-tabs-panel {
         padding: 0em;
       }

       .ui-tabs .ui-tabs-nav {
          padding: 0px;
      }

      .accordiantab
      {

        height: 30%;
      }

     .ui-icon {
       background-image: url("images/ui-icons_222222_256x240.png");
       height: 16px;
       width: 16px;
     }

    </style>
    </head>

    <body>
    <form id="form1" runat="server">
    <ajaxToolkit:ToolkitScriptManager runat="Server" ID="ScriptManager1" AsyncPostBackTimeout="360000" />
    <div>
        <div id="contentsMain" style="margin: 0px auto 0px auto; width: 100%;">
            <table cellpadding="0" cellspacing="0" style="width: Auto" align="center">
                <tr id="top-header">
                    <td colspan="5" align="left">
                        <div class="header">
                            <table width="100%">
                                <tr>
                                    <td valign="top">
                                         <img alt="logo" src="<%=ResolveClientUrl("../Image/hero-new.gif")%>" height="50px" />

                                    </td>
                                    <td style="font-weight: bold; color: Navy" align="center">
                                        <%--PAYROLL APPLICATION--%>
                                    </td>
                                    <td>
                                        <div align="right" style="font-size: 13px; font-weight: bold">
                                            <table cellpadding="0" cellspacing="0" align="left">
                                                <tr>
                                                    <td valign="top" align="left">
                                                        Welcome
                                                        <asp:Label ID="lblName" runat="server" Text=""></asp:Label>|
                                                        <asp:LinkButton ID="lnk_logout" runat="server" ForeColor="Black" PostBackUrl="~/Signout.aspx">Sign Out</asp:LinkButton>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" align="left">
                                                        <div style="font-size: 13px">
                                                            Location:
                                                            <asp:Label ID="lbl_location" runat="server" Text=""></asp:Label>
                                                        </div>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </td>
                </tr>
                <tr id="top-header-banner" style="height: 25px; border-bottom:1px solid #6394CE;">
                     <td colspan="5" style="border-bottom:1px solid #6394CE">

                     </td>
                </tr>
                <tr>
                    <td align="left" valign="bottom">
                      <%--  <asp:UpdatePanel runat="server" ID="upd">
                        <ContentTemplate>--%>
                        <input type="hidden" id="scroll" runat="server" />
                        <div class="menu" id="Div2"  style="width: 250px; margin-left: 5px;">
                            <div class="subHeader">
                                <div id="moduletitle">
                                   My Module
                                </div>
                            </div>

                                    <div id="tabs">

    <div id="tabs-1">
    <%if (A1 == 1)
      { %>

      <div id="accordion">
        <%if (E1 == 1)
          { %>
              <h3>Master Data Module</h3>
              <div style="overflow:auto;height:150px; ">
          <%-- <div style="margin-left: 5%; padding-bottom: 10px">
            <a href="#" style="text-decoration:none; font-size: bold"><img src="../../images/entry1.gif" alt="Lamp" width="15" height="15" border="0"/>Employee Master Entry</a>
            </div>--%>
            <%for (int i = 0; i < menu.Length; i++) %>
      <% switch (menu[i])
         { %>
           <% case 29: %>
           <div style="margin-left: 1%; padding-bottom: 5px">
            <a href="../../EntryModule/MasterDataModule/PersonalDataEntry.aspx?module=0" style="text-decoration:none; font-size: 12px; padding-bottom: 5px;">Employee Entry</a>
            </div>
             <%break; %>
              <% case 30: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/MasterDataModule/OfficialDataEntry.aspx?module=0" style="text-decoration:none; font-size: 12px; padding-bottom: 5px;">Official Entry</a>
           </div>
            <%break; %>
              <% case 84: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/MasterDataModule/Apprentice_casual.aspx?module=0" style="text-decoration:none;  font-size: 12px; padding-bottom: 5px;">Apprentice Casual </a>
           </div>
            <%break; %>
            <% case 193: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/MasterDataModule/SubSectionEntry.aspx?module=0" style="text-decoration:none;  font-size: 12px; padding-bottom: 5px;">Sub Section Entry </a>
           </div>
           <%break; %>
            <% case 195: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/MasterDataModule/TeamMemberFullandFinalReversal.aspx?module=0" style="text-decoration:none;  font-size: 12px; padding-bottom: 5px;">Team Member Full and Final Revarsal</a>
           </div>
           <%break; %>
            <% case 194: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/MasterDataModule/TeamMemberRegularization.aspx?module=0" style="text-decoration:none;  font-size: 12px; padding-bottom: 5px;">Team Member Regularization</a>
           </div>
           <%break; %>
            <% case 110: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/MasterDataModule/ContractorMasterEntry.aspx?module=0" style="text-decoration:none; font-size: 12px; padding-bottom: 5px;">PF Contractor Entry</a>
           </div>
            <%break; %>
            <% case 152: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/MasterDataModule/NewContractorMasterEntry.aspx?module=0" style="text-decoration:none; font-size: 12px; padding-bottom: 5px;">Contractor Entry</a>
           </div>
            <%break; %>
            <% case 119: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/MasterDataModule/EmployeeQualification.aspx?module=0" style="text-decoration:none; font-size: 12px; padding-bottom: 5px;">Employee Qualification</a>
           </div>
            <%break; %>
            <% case 120: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/MasterDataModule/PFESI_Entry_Screen.aspx?module=0" style="text-decoration:none; font-size: 12px; padding-bottom: 5px;">PF/ESI Entry</a>
           </div>
            <%break; %>
            <% case 159: %>
           <%--<div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/MasterDataModule/ContractorMasterEntry.aspx?module=0" style="text-decoration:none; font-size: 12px; padding-bottom: 5px;">New Contractor Entry</a>
           </div>--%>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/MasterDataModule/EmployeeSectionUpdation.aspx?module=0" style="text-decoration:none; font-size: 12px; padding-bottom: 5px;">Employee Section Updation</a>
           </div>
            <%break; %>
            <% case 173: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/MasterDataModule/ShiftSchudle.aspx?module=0" style="text-decoration:none; font-size: 12px; padding-bottom: 5px;">Employee Shift Schedule</a>
           </div>
            <%break; %>
            <% case 181: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/MasterDataModule/EmployeeBankName.aspx?module=0" style="text-decoration:none; font-size: 12px; padding-bottom: 5px;">Employee Bank Name</a>
           </div>
            <%break; %>
            <% case 187: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/MasterDataModule/DepartmentWiseSkill.aspx?module=0" style="text-decoration:none; font-size: 12px;">Department Wise Skill</a>
           </div>
            <%break; %>
            <% case 200: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/MasterDataModule/EmployeeDeptCode.aspx?module=0" style="text-decoration:none; font-size: 12px;"> TM Department Code Entry</a>
           </div>
            <%break; %>
             <% } %>
        </div>
         <%} %>

       <%if (E2 == 1)
          { %>
        <h3>Attendence Module</h3>
        <div style="overflow:auto;height:150px; ">
           <%--<div style="margin-left: 5%; padding-bottom: 10px">
            <a href="#" style="text-decoration:none; font-size: bold"><img src="../../images/entry1.gif" alt="Lamp" width="15" height="15" border="0"/>entry</a>
            </div>--%>
            <%for (int i = 0; i < menu.Length; i++) %>
      <% switch (menu[i])
         { %>
         <% case 17: %>
           <div style="margin-left: 1%; padding-bottom: 5px">
            <a href="../../EntryModule/AttendenceModule/WeeklyOffsEntry.aspx?module=2?module=0" style="text-decoration:none; font-size: 12px; ">Weekly Offs Entry</a>
            </div>
            <%break; %>
            <% case 25: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/AttendenceModule/OvertStay_Compensatryoff.aspx?module=0" style="text-decoration:none; font-size: 12px;">Overstay Compensatory Entry</a>
           </div>
            <%break; %>
            <% case 78: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/AttendenceModule/LeaveEntry.aspx?module=0" style="text-decoration:none; font-size: 12px;">Leaves Entry</a>
           </div>
            <%break; %>
            <% case 79: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/AttendenceModule/SetHolidaysWorkingSunday.aspx?module=0" style="text-decoration:none; font-size: 12px;">Set Holidays/Working Sundays</a>
           </div>
           <%break; %>
            <% case 81: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/AttendenceModule/DataUploadProcess.aspx?module=0" style="text-decoration:none; font-size: 12px;">Attendance Data Upload</a>
           </div>
           <%break; %>
            <% case 82: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/AttendenceModule/AttendanceDataQuery.aspx?module=0" style="text-decoration:none; font-size: 12px;">Attendance Data Query</a>
           </div>
           <%break; %>
            <% case 83: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/AttendenceModule/ManpowerEntryContractor.aspx?module=0" style="text-decoration:none; font-size: 12px;">Manpower Entry Contractor</a>
           </div>
           <%break; %>
            <% case 107: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/AttendenceModule/WeeklyOffsChange.aspx?module=0" style="text-decoration:none; font-size: 12px;">Weekly Offs  Change</a>
           </div>
           <%break; %>
            <% case 115: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/AttendenceModule/AttendanceDataQuery.aspx?module=0" style="text-decoration:none; font-size: 12px;">Attendance Data Query (SR. GM)</a>
           </div>
           <%break; %>
            <% case 134: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/AttendenceModule/ManualAttendanceEntry.aspx?module=0" style="text-decoration:none; font-size: 12px;">Manual Attendance Entry</a>
           </div>
           <%break; %>
            <% case 153: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/AttendenceModule/AttendanceDataQuery(Contractor).aspx?module=0" style="text-decoration:none;font-size: 11px; font-weight:bold">Attendance Data Query(Contractor)</a>
           </div>
           <%break; %>
            <% case 154: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/AttendenceModule/KisokPasswordChange.aspx?module=0" style="text-decoration:none; font-size: 12px;">Kiosk Password Changes</a>
           </div>
           <%break; %>
            <% case 155: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/AttendenceModule/WeeklyOffsEntry(Contractor).aspx?module=0" style="text-decoration:none; font-size: 12px;">Weekly Offs (Contractor)</a>
           </div>
            <%break; %>
            <% case 192: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/AttendenceModule/Contractor Employee Uniform Detail Entry.aspx?module=0" style="text-decoration:none; font-size: 12px;">Contractor Uniform Details</a>
           </div>
            <%break; %>
            <% case 160: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/AttendenceModule/WeeklyOffsChange(Contractor).aspx?module=0" style="text-decoration:none; font-size: 12px;">Weekly Off Change(Contractor)</a>
           </div>
            <%break; %>
            <% case 161: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/AttendenceModule/Leave Generation.aspx?module=0" style="text-decoration:none; font-size: 12px;">Leave Generation (Regular)</a>
           </div>
            <%break; %>
            <% case 163: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/AttendenceModule/Not Taking Lunch frm.aspx?module=0" style="text-decoration:none; font-size: 12px;">Not Taking Lunch Entry</a>
           </div>
            <%break; %>
            <% case 164: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/AttendenceModule/Daily_Manpower_report.aspx?module=0" style="text-decoration:none; font-size: 12px;">Daily Manpower Rep</a>
           </div>
            <%break; %>
            <% case 0: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/AttendenceModule/WeeklyOffsChange(Manager).aspx?module=0" style="text-decoration:none; font-size: 12px;">Weekly off change(Manager)</a>
           </div>
            <%break; %>
            <% case 166: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/AttendenceModule/Bus Late Updation.aspx?module=0" style="text-decoration:none; font-size: 12px;">Bus Late Updation</a>
           </div>
            <%break; %>
            <% case 167: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/AttendenceModule/Employee Shift Schedule Correction.aspx?module=0" style="text-decoration:none; font-size: 12px;">Employee Shift Schedule Correction</a>
           </div>
            <%break; %>
            <% case 171: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/AttendenceModule/Short_leave_entry.aspx?module=0" style="text-decoration:none; font-size: 12px;">Short Leave Entry</a>
           </div>
            <%break; %>
            <% case 0110: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/AttendenceModule/Short_leave_Entry_new.aspx?module=0" style="text-decoration:none; font-size: 12px;">Short Leave Entry(DHR)</a>
           </div>
           <%--<div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="#" style="text-decoration:none; font-size: 12px;">Overstay Compensatory Entry</a>
           </div>--%>
            <%break; %>
            <% case 198: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/AttendenceModule/DailyAwrProcess.aspx?module=0" style="text-decoration:none; font-size: 12px;">Daily Awr Process</a>
           </div>
            <%break; %>
            <% case 185: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/AttendenceModule/Leave Information Updation.aspx?module=0" style="text-decoration:none; font-size: 12px;">Leave Information Updation</a>
           </div>
           <%break; %>
           <% } %>
           <%-- <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="#" style="text-decoration:none; font-size: 12px;">Weekly off</a>
           </div>--%>

        </div>
        <%} %>

       <%if (E3 == 1)
          { %>
        <h3>Salary Module</h3>
         <div style="overflow:auto;height:150px; ">
            <%--<div style="margin-left: 5%; padding-bottom: 10px">
            <a href="#" style="text-decoration:none; font-size: bold"><img src="../../images/entry1.gif" alt="Lamp" width="15" height="15" border="0"/>entry</a>
            </div>--%>
             <%for (int i = 0; i < menu.Length; i++) %>
      <% switch (menu[i])
         { %>
            <% case 20: %>
           <div style="margin-left: 1%; padding-bottom: 5px">
            <a href="../../EntryModule/Salary Module/PostOfficeMasterEntry.aspx?module=0" style="text-decoration:none; font-size: 12px;">PO Entry</a>
           </div>
           <%break; %>
            <% case 23: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/Salary Module/Direct_ArrerEntry.aspx?module=0" style="text-decoration:none; font-size: 12px;">Direct Arrear Entry</a>
           </div>
           <%break; %>
            <% case 24: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/Salary Module/Variable_ArrerEntry.aspx?module=0" style="text-decoration:none; font-size: 12px;">Variable Data Entry</a>
           </div>
           <%break; %>
            <% case 27: %>
           <div style="margin-left: 1%; padding-bottom:0px"">
            <a href="../../EntryModule/Salary Module/FlagUpdationScreen.aspx?module=0" style="text-decoration:none; font-size: 12px;">Flags Updation</a>
           </div>
           <%break; %>
            <% case 200: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/Salary Module/ArrearDaysEntry.aspx?module=0" style="text-decoration:none; font-size: 12px;">Arrear Days Entry</a>
           </div>
           <%break; %>
            <% case 68: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/Salary Module/CasualBreakPayScreen.aspx?module=0" style="text-decoration:none; font-size: 12px;">Casual Break Pay</a>
           </div>
           <%break; %>
            <% case 87: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/Salary Module/FullAndFinal.aspx?module=0" style="text-decoration:none; font-size: 12px;">Full and Final Entry(CAS_APP)</a>
           </div>
           <%break; %>
            <% case 188: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/Salary Module/fullnfinal_contractor.aspx?module=0" style="text-decoration:none; font-size: 12px;">Full and Final Entry(CONT.)</a>
           </div>
           <%break; %>

           <%-- <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="#" style="text-decoration:none; font-size: 12px;">Direct Arrear Entry (CAS_APP)</a>
           </div>

            <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="#" style="text-decoration:none; font-size: 12px;">Arrear Days Entry(CAS_APP)</a>
           </div>--%>
            <% case 182: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/Salary Module/EmployeeIncentiveRate.aspx?module=0" style="text-decoration:none; font-size: 12px;">Employee Incentive rate Entry</a>
           </div>
           <%break; %>

           <%--<div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="" style="text-decoration:none; font-size: 12px;">Contractor Salary Entry</a>
           </div>--%>
            <% case 116: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/Salary Module/MotorCycleDetailEntry.aspx?module=0" style="text-decoration:none; font-size: 12px;">Motorcycle Loan Entry</a>
           </div>
           <%break; %>
            <% case 125: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/Salary Module/EmployeeFamily.aspx?module=0" style="text-decoration:none;font-size: 12px">Employee Family</a>
           </div>
           <%break; %>
            <% case 135: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/Salary Module/CouponEntry.aspx?module=0" style="text-decoration:none; font-size: 12px;">Coupon Entry</a>
           </div>
           <%break; %>
            <% case 0220: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/Salary Module/BankAccountEntry.aspx?module=0" style="text-decoration:none; font-size: 12px;">Department/Bank A/c No. Entry</a>
           </div>
           <%break; %>
            <% case 168: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/Salary Module/SubassitanceForm.aspx?module=0" style="text-decoration:none; font-size: 12px;">Subsistance Allowance</a>
           </div>
           <%break; %>
            <% case 172: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/Salary Module/CycleLoanInstalmentEntry.aspx?module=0" style="text-decoration:none; font-size: 12px;">Cycle Loan Entry</a>
           </div>
           <%break; %>
            <% case 186: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/Salary Module/ContractorWiseTax.aspx?module=0" style="text-decoration:none; font-size: 12px;">Contractor Wise Tax</a>
           </div>
           <%break; %>
            <% }%>
        </div>
         <%} %>

        <%if (E4 == 1)
          { %>
        <h3>Gate Pass Entry</h3>
        <div style="height:20px">
           <%--<div style="margin-left: 5%; padding-bottom: 10px">
            <a href="#" style="text-decoration:none; font-size: bold"><img src="../../images/entry1.gif" alt="Lamp" width="15" height="15" border="0"/>entry</a>
            </div>
            <div style="margin-left: 5%; padding-bottom: 10px"">
            <a href="#" style="text-decoration:none"><img src="../../images/process.gif" alt="Lamp" width="15" height="15" border="0"/>Process</a>
           </div>--%>
       <%for (int i = 0; i < menu.Length; i++) %>
      <% switch (menu[i])
         { %>
           <% case 80: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/GatePassModule/Employee Gate Pass Entry Screen.aspx?module=0" style="text-decoration:none; font-size: 12px;">Gate Pass Entry</a>
           </div>
            <%break; %><%} %>
        </div>
        <%} %>

        <%if (E5 == 1)
          { %>
        <h3>Attendence Data Query</h3>
        <div style="height:20px">
           <%--<div style="margin-left: 5%; padding-bottom: 10px">
            <a href="#" style="text-decoration:none; font-size: bold"><img src="../../images/entry1.gif" alt="Lamp" width="15" height="15" border="0"/>entry</a>
            </div>
            <div style="margin-left: 5%; padding-bottom: 10px"">
            <a href="#" style="text-decoration:none"><img src="../../images/process.gif" alt="Lamp" width="15" height="15" border="0"/>Process</a>
           </div>--%>
             <%for (int i = 0; i < menu.Length; i++) %>
      <% switch (menu[i])
         { %>
           <% case 115: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/AttendenceModule/AttendanceDataQuery.aspx?module=0" style="text-decoration:none; font-size: 12px;">Attendence Data Query</a>
           </div>
           <%break; %><%} %>
        </div>
         <%} %>
      </div>

      <%} %>
    </div><!-- @ End of div tab-1 -->

    <div id="tabs-2">
    <%if (A2 == 1)
      { %>
       <div id="accordion2">
        <%if (P1 == 1)
          { %>
        <h3>Leave module</h3>
        <div class="accordiantab">
           <%--<div style="margin-left: 5%; padding-bottom: 10px">
            <a href="#" style="text-decoration:none; font-size: bold"><img src="../../images/entry1.gif" alt="Lamp" width="15" height="15" border="0"/>entry</a>
            </div>--%>
      <%for (int i = 0; i < menu.Length; i++) %>
      <% switch (menu[i])
         { %>
             <% case 115: %>
             <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/AttendenceModule/AttendanceDataQuery.aspx?module=1" style="text-decoration:none; font-size: 12px;">Attendance Data Updation</a>
           </div>
           <%break; %>--%>
             <% case 50: %>
            <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../ProcessModule/Process/LeaveEncashment.aspx?module=1" style="text-decoration:none; font-size: 12px;">EL Encashment</a>
           </div>
           <%break; %>--%>
             <% case 105: %>
            <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../ProcessModule/Process/LotusNoteUpdation.aspx?module=1" style="text-decoration:none; font-size: 12px;">Lotus Data Updation Screen</a>
           </div>
           <%break; %>--%>
             <% case 114: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../ProcessModule/Process/LeaveDaysCorrectionForm.aspx?module=1" style="text-decoration:none; font-size: 12px;">Leave Day Correction</a>
           </div>
           <%-- <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../ProcessModule/Process/LotusNoteUpdation.aspx?module=1" style="text-decoration:none; font-size: 12px;">Contractor Leave Updation</a>
           </div>--%>
          <%break; %>
           <%} %>
        </div>
         <%} %>

         <%if (P2 == 1)
          { %>
        <h3>Arrear Module</h3>
        <div class="accordiantab">
         <%for (int i = 0; i < menu.Length; i++) %>
      <% switch (menu[i])
         { %>
             <% case 52: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../ProcessModule/Process/ArrearCalculation.aspx?module=1" style="text-decoration:none; font-size: 12px;">Arrear Calculation</a>
           </div>
           <%break; %>
            <%--<div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../ProcessModule/Process/TraineeArrear.aspx?module=1" style="text-decoration:none; font-size: 12px;">Trainee Arrear Calculation</a>
           </div>--%>
           <%} %>

        </div>
         <%} %>

         <%if (P3 == 1)
          { %>
          <h3>Salary Module</h3>
        <div class="accordiantab">
       <%for (int i = 0; i < menu.Length; i++) %>
      <% switch (menu[i])
         { %>
             <% case 56: %>
            <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../ProcessModule/Process/PayCal.aspx?module=1" style="text-decoration:none; font-size: 12px;">Salary Calculation</a>
           </div>
            <%break; %>
           <% case 92: %>
            <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../ProcessModule/Process/PayCalculationCas.aspx?module=1" style="text-decoration:none; font-size: 12px;">Salary Calculation(CAS_APP)</a>
           </div>
           <%break; %>
           <% case 0330: %>
            <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../ProcessModule/Process/ProcessScreen.aspx?module=1" style="text-decoration:none; font-size: 12px;">Before Salary Process</a>
           </div>
            <%break; %>
           <% case 123: %>
            <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../ProcessModule/Process/SAPDATA.aspx?module=1" style="text-decoration:none; font-size: 12px;">SAP Absent Creation</a>
           </div>
          <%break; %><%} %>
        </div>
         <%} %>

      </div>
      <%} %>
    </div><!-- @ End of div tab-2 -->

     <div id="tabs-3" >
     <%if (A3 == 1)
       { %>
       <div id="accordion3">
        <%if (Q1 == 1)
          { %>
        <h3>Salary Browser</h3>
            <div class="accordiantab" style="height:20px">
       <%for (int i = 0; i < menu.Length; i++) %>
       <% switch (menu[i])
          { %>
             <% case 74: %>
            <div  style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../Query/Query/SalaryBrowser.aspx?module=2" style="text-decoration:none; font-size: 12px;">Salary Browser</a>
           </div>
            <%break; %><%} %>
            </div>
          <%} %>

          <%if (Q2 == 1)
          { %>
            <h3>Leave Query</h3>
            <div class="accordiantab" style="height:20px">
            <%for (int i = 0; i < menu.Length; i++) %>
            <% switch (menu[i])
               { %>
             <% case 108: %>
            <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../Query/LeaveQuery/LeaveQuerySystem.aspx?module=2" style="text-decoration:none; font-size: 12px;">Leave Query</a>
           </div>
           <%break; %><%} %>
            </div>
            <%} %>

             <%if (Q3 == 1)
          { %>
            <h3>Employee Search</h3>
            <div class="accordiantab" style="height:20px">
             <%for (int i = 0; i < menu.Length; i++) %>
            <% switch (menu[i])
               { %>
             <% case 112: %>
           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../Query/EmployeeQuery/Employee_Search_Query.aspx?module=2" style="text-decoration:none; font-size: 12px;">Employee Search</a>
           </div>
           <%break; %><%} %>
            </div>
            <%} %>


            <%if (Q4 == 1)
            {%>
            <h3>PF 3A Query</h3>
            <div class="accordiantab" style="height:20px">
            <%for (int i = 0; i < menu.Length; i++) %>
            <% switch (menu[i])
               { %>
             <% case 122: %>

           <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../Query/Query/PF_3A_Query.aspx?module=2" style="text-decoration:none; font-size: 12px;">PF 3A Query</a>
           </div>
           <%break; %><%} %>
           </div>
            <%} %>

       <%if (Q4 == 1)
          { %>
        <h3>Leave Opening Balance</h3>
            <div class="accordiantab" style="height:20px">
             <%for (int i = 0; i < menu.Length; i++) %>
            <% switch (menu[i])
               { %>
             <% case 183: %>
                <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../Query/Query/Leave_Opening_Balance.aspx?module=2" style="text-decoration:none; font-size: 12px;">Leave Opening Balance</a>
           </div>
            <%break; %><%} %>
            </div>
            <%} %>

             <%if (Q4 == 1)
          { %>
             <h3>Manpower Display Contractor</h3>
            <div class="accordiantab" style="height:20px">
             <%for (int i = 0; i < menu.Length; i++) %>
            <% switch (menu[i])
               { %>
             <% case 184: %>
                 <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../EntryModule/AttendenceModule/ManpowerEntryContractor.aspx?module=2" style="text-decoration:none; font-size: 12px;">Manpower Display Contractor</a>
           </div>
            <%break; %><%} %>
            </div>
            <%} %>
            </div>
       <%} %>
    </div><!-- @ End of div tab-3  -->

    <div id="tabs-4">
    <%if (A4 == 1)
      { %>
       <div id="accordion4">
        <%if (R1 == 1)
          { %>
        <h3>Master Data Report</h3>
            <div class="accordiantab" style="height:20px">
             <%for (int i = 0; i < menu.Length; i++) %>
            <% switch (menu[i])
               { %>
             <% case 59: %>
               <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="#" style="text-decoration:none; font-size: 12px;">Master Data Report</a>
           </div>
           <%break; %> <%} %>
            </div>
          <%} %>

         <%if (R2 == 1)
          { %>
        <h3>Arrer/AWR Reports</h3>
            <div class="accordiantab" style="height:20px">
             <%for (int i = 0; i < menu.Length; i++) %>
            <% switch (menu[i])
               { %>
             <% case 60: %>
               <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../Report/ArrearAWRReport/Arrear_report.aspx" style="text-decoration:none; font-size: 12px;">Arrer/AWR Reports</a>
           </div>
               <%break; %> <%} %>
            </div>
            <%} %>

         <%if (R3 == 1)
          { %>
             <h3>Salary Reports</h3>
            <div class="accordiantab" style="height:20px">
             <%for (int i = 0; i < menu.Length; i++) %>
            <% switch (menu[i])
               { %>
             <% case 61: %>
                <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="#" style="text-decoration:none; font-size: 12px;">Salary Reports</a>
           </div>
            <%break; %> <%} %>
            </div>

            <%} %>
             <h3>General Reports</h3>
         <%if (R4 == 1)
          { %>
            <div class="accordiantab" style="height:20px">
             <%for (int i = 0; i < menu.Length; i++) %>
            <% switch (menu[i])
               { %>
             <% case 64: %>
                <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="#" style="text-decoration:none; font-size: 12px;">General Reports</a>
           </div>
               <%break; %> <%} %>
            </div>
            <%} %>

         <%if (R5 == 1)
          { %>
             <h3>Report Screen</h3>
            <div class="accordiantab" style="height:20px">
             <%for (int i = 0; i < menu.Length; i++) %>
            <% switch (menu[i])
               { %>
             <% case 183: %>
               <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="#" style="text-decoration:none; font-size: 12px;">Report Screen</a>
           </div>
               <%break; %> <%} %>
            </div>
                <%} %>

          <%if (R6 == 1)
          { %>
              <h3>Monthly Late Report</h3>
            <div class="accordiantab" style="height:20px">
             <%for (int i = 0; i < menu.Length; i++) %>
            <% switch (menu[i])
               { %>
             <% case 183: %>
                 <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../Report/MonthlyLateReport/LateForm.aspx?module=5" style="text-decoration:none; font-size: 12px;">Monthly Late Report</a>
           </div>
            <%break; %> <%} %>
            </div>
            <%} %>
         <%if (R6 == 1)
          { %>
              <h3>Man Power Report</h3>
            <div class="accordiantab" style="height:20px">
             <%for (int i = 0; i < menu.Length; i++) %>
            <% switch (menu[i])
               { %>
             <% case 183: %>
                <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="#" style="text-decoration:none; font-size: 12px;">Man Power Report</a>
           </div>
               <%break; %> <%} %>
            </div>
             <%} %>
       </div>
      <%} %>
    </div><!-- @ End of div tab-4 -->

    <div id="tabs-5">
    <%if (A5 == 1)
      { %>
       <div id="accordion5">
       <%if (D1 == 1)
      { %>
        <h3>Data Uploading To SAP HR</h3>
            <div class="accordiantab" style="height:20px">
             <%for (int i = 0; i < menu.Length; i++) %>
            <% switch (menu[i])
               { %>
             <% case 97: %>
               <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../Download_upload Data/DownLoad_Upload_Data/Data_Uploading_From_SAP_HR.aspx?module=4" style="text-decoration:none; font-size: 12px;">Data Uploading To SAP HR</a>
           </div>
           <%break; %><%} %>
            </div>
      <%} %>
           <%if (D2 == 1)
      { %>
        <h3>Data Downloading from SAP HR</h3>
            <div class="accordiantab" style="height:20px">
             <%for (int i = 0; i < menu.Length; i++) %>
            <% switch (menu[i])
               { %>
                <% case 124: %>
                     <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../Download_upload Data/DownLoad_Upload_Data/Data_Downloading_From_SAP_HR.aspx?module=4" style="text-decoration:none; font-size: 12px;">Data Downloading To SAP HR</a>
           </div>
                <%break; %>
               <%} %>

            </div>
            <%} %>
              <%if (D3 == 1)
      { %>
             <h3>SAP Employee Master Download</h3>
            <div class="accordiantab" style="height:20px">
             <%for (int i = 0; i < menu.Length; i++) %>
            <% switch (menu[i])
               { %>
             <% case 130: %>
                 <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../Download_upload Data/DownLoad_Upload_Data/SAP_Empl_Master_Download.aspx?module=4" style="text-decoration:none; font-size: 12px;">SAP Employee Master Download</a>
           </div>
                <%break; %><%} %>

            </div>
            <%} %>
              <%if (D4 == 1)
      { %>
             <h3>Employee Master Error Log/ History</h3>
            <div class="accordiantab" style="height:20px">
             <%for (int i = 0; i < menu.Length; i++) %>
            <% switch (menu[i])
               { %>
             <% case 131: %>
                 <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../Download_upload Data/DownLoad_Upload_Data/Empl_Error_History_Log_Screen.aspx?module=4" style="text-decoration:none; font-size: 12px;">Employee Master Error Log/ History</a>
           </div>
               <%break; %><%} %>

            </div>
             <%} %>
       </div>
       <%} %>
    </div><!-- @ End of div tab-5 -->

     <div id="tabs-6">
     <%if (A6 == 1)
       { %>
       <div id="accordion6">
       <%if (Y1 == 1)
       { %>
        <h3>Process</h3>
            <div class="accordiantab">
            <%for (int i = 0; i < menu.Length; i++) %>
            <% switch (menu[i])
               { %>
             <% case 102: %>
            <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../Yearly/Process/CasuaBonusdataMovementl.aspx?module=5" style="text-decoration:none; font-size: 12px;">Casual Bonus Data Movement</a>
           </div>
          <%break; %>
             <% case 127: %>
            <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../Yearly/Process/PF_return.aspx?module=5" style="text-decoration:none; font-size: 12px;">PF Return</a>
           </div>
          <%break; %>
             <% case 128: %>
            <div style="margin-left: 1%; padding-bottom: 5px"">
            <a href="../../Yearly/Process/GGIN_Genration.aspx?module=5" style="text-decoration:none; font-size: 12px;">GINO Generation</a>
           </div>
              <%break; %><%} %>
            </div>
            <%} %>
      <%if (Y2 == 1)
       { %>
        <h3>Report</h3>
            <div class="accordiantab" style="height:20px">
            <%for (int i = 0; i < menu.Length; i++) %>
            <% switch (menu[i])
               { %>
             <% case 101: %>
            <div style="margin-left: 1%; padding-bottom: 5px"">
                 <a href="#" style="text-decoration:none; font-size: 12px;">Casual Bonus Report</a>
                 </div>
                 <%break; %><%} %>

            </div>
            <%} %>
             <%if (Y3 == 1)
       { %>
        <h3>Entry</h3>
            <div class="accordiantab">
            <%for (int i = 0; i < menu.Length; i++) %>
            <% switch (menu[i])
               { %>
             <% case 104: %>
                 <div style="margin-left: 1%; padding-bottom: 5px"">
                 <a href="../../Yearly/Entry/CasualBonusdataCorrection.aspx?module=5" style="text-decoration:none; font-size: 12px;">Casual Bonus Data Correction</a>
                 </div>
                <%break; %><%} %>


            </div>
             <%} %>
       </div>
       <%} %>
    </div><!-- @ End of div tab-6 -->

    <div id="tabs-7">
    <%if (A7 == 1)
      { %>
       <div id="accordion7">
        <h3>Password 1</h3>
         <%for (int i = 0; i < menu.Length; i++) %>
            <% switch (menu[i])
               { %>
             <% case 0410: %>
            <div class="accordiantab" style="height:0px">
                <a href="../../PasswordChange/Password/PasswordChange.aspx?module=6" style="text-decoration:none;font-size:12px;">Password Change</a>
            </div>
             <%break; %><%} %>
       </div>
       <%} %>
    </div><!-- @ End of div tab-7 -->

    <div id="tabs-8">
       <div id="accordion8" style="height: 200px">
        <%--<h3>EXit</h3>--%>
            <%--<div class="accordiantab" style="height:0px">

            </div>--%>


       </div>
    </div><!-- @ End of div tab-8 -->


        <ul>
    <%for(int i=0;i<menu.Length;i++) %>
      <% switch (menu[i])
         { %>

      <% case 1: %>
             <li class="module"><a href="#tabs-1"><img src="../../images/entry1.gif" alt="lamp" width="15" height="15" border="0" />entry</a></li>
             <%A1 = 1; %>
       <%break; %>
           <% case 2: %>
            <li class="module"><a href="#tabs-2"><img src="../../images/process.gif" alt="lamp" width="15" height="15" border="0"/>process</a></li>
           <%A2 = 1; %>
       <%break; %>
       <% case 3: %>
            <li class="module"><a href="#tabs-3"><img src="../../images/query1.gif" alt="lamp" width="15" height="15" border="0"/>query</a></li>
            <%A3 = 1; %>
        <%break; %>
        <% case 4: %>
            <li class="module"><a href="#tabs-4"><img src="../../images/report.gif" alt="lamp" width="15" height="15" border="0"/>report</a></li>
            <%A4 = 1; %>
       <%break; %>
       <% case 5: %>
            <li class="module"><a href="#tabs-5"><img src="../../images/download.gif" alt="lamp" width="15" height="15" border="0"/>download/upload data</a></li>
            <%A5 = 1; %>
        <%break; %>
        <% case 98: %>
            <li class="module"><a href="#tabs-6"><img src="../../images/yearly.gif" alt="lamp" width="15" height="15" border="0"/>yearly</a></li>
            <%A6 = 1; %>
       <%break; %>
       <% case 66: %>
          <li class="module"><a href="#tabs-7"><img src="../../images/password.gif" alt="lamp" width="15" height="15" border="0"/>password change</a></li>
          <%A7 = 1; %>
       <%break; %>
       <% case 999: %>
     <li class="module"><a href="#tabs-8"><img src="../../images/exit.gif" alt="lamp" width="15" height="15" border="0"/>exit</a></li>
      <%break; %>
 <%} %>
 <%for (int j = 0; j < menu.Length; j++) %>
            <% switch (menu[j])
               { %>
                <%--ENTRY MODUAL --%>
             <% case 6: %>
                 <%E1 = 1; %>
                 <%break; %>
             <% case 7: %>
                 <%E2 = 1; %>
                 <%break; %>
             <% case 8: %>
                 <%E3 = 1; %>
                 <%break; %>
             <% case 80: %>
                 <%E4 = 1; %>
                 <%break; %>
             <% case 115: %>
                 <%E5 = 1; %>
                 <%break; %>

                 <%--PROCESS MODUAL --%>

              <% case 40: %>
                 <%P1 = 1; %>
                 <%break; %>
              <% case 41: %>
                 <%P2 = 1; %>
                 <%break; %>
              <% case 42: %>
                 <%P3 = 1; %>
                 <%break; %>

                 <%--QUERY MODUAL --%>

              <% case 74: %>
                 <%Q1 = 1; %>
                 <%break; %>
              <% case 108: %>
                 <%Q2 = 1; %>
                 <%break; %>
              <% case 112: %>
                 <%Q3 = 1; %>
                 <%break; %>
              <% case 122: %>
                 <%Q4 = 1; %>
                 <%break; %>
              <% case 183: %>
                 <%Q5 = 1; %>
                 <%break; %>
              <% case 184: %>
                 <%Q6 = 1; %>
                 <%break; %>

                  <%--REPORT MODUAL --%>

               <% case 59: %>
                 <%R1 = 1; %>
                 <%break; %>
               <% case 60: %>
                 <%R2 = 1; %>
                 <%break; %>
               <% case 61: %>
                 <%R3 = 1; %>
                 <%break; %>
               <% case 64: %>
                 <%R4 = 1; %>
                 <%break; %>
               <% case 95: %>
                 <%R5 = 1; %>
                 <%break; %>
               <% case 113: %>
                 <%R6 = 1; %>
                 <%break; %>
               <% case 178: %>
                 <%R7 = 1; %>
                 <%break; %>

                 <%--DATA/UPLOAD DOWNLOAD SAP MODUAL --%>

                <% case 97: %>
                 <%D1 = 1; %>
                 <%break; %>
                <% case 124: %>
                 <%D2 = 1; %>
                 <%break; %>
                <% case 130: %>
                 <%D3 = 1; %>
                 <%break; %>
                <% case 131: %>
                 <%D4 = 1; %>
                 <%break; %>

                  <%--YEAR MODUAL --%>

                <% case 99: %>
                 <%Y1 = 1; %>
                 <%break; %>
                <% case 100: %>
                 <%Y2 = 1; %>
                 <%break; %>
                <% case 103: %>
                 <%Y3 = 1; %>
                 <%break; %>

             <%} %>
    </ul>

</div>

                            <!-- ajax control tool -->
                        </div>
                       <%-- </ContentTemplate>

                        </asp:UpdatePanel>--%>
                   </td>
                     <%  %>
                    <td valign="top" style="width: 2%">
                        <div style="margin-top: 6px;">
                            <a href="#Div2" class="nav-toggle">
                                <span><img id="nav-toggle-previous" alt="hide" src="<%=ResolveClientUrl("../images/previous1.png")%>" border="0"/>
                                    </span></a>
                        </div>
                    </td>
                    <td style="width: 100%">
                        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
                        </asp:ContentPlaceHolder>
                    </td>
                    <td valign="top" style="width: 2%">
                        <div style="margin-top: 6px;">
                            <a href="#Div1" class="nav-toggle1">
                                <span><img id="nav-toggle-previous1" alt="hide" src="<%=ResolveClientUrl("../images/next1.png")%>" border="0"/>
                                    </span></a>
                        </div>
                    </td>
                    <td>
                        <div class="content1" style="width: 200px" id="Div1">
                            <div class="subHeader">
                                <div id="task">
                                    Tasks</div>
                            </div>
                            <div class="divtasks" id="Tasks">
                                <%--<HomeSale:Sales ID="SalesTasks" runat="server" />--%>
                            </div>
                            <div class="clear" align="right" style="padding-right: 10px">
                                <asp:Label ID="lbl_Environment" runat="server" Text=""></asp:Label>
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <asp:Label ID="Lbl_menu" Visible="false" runat="server" Text="Label"></asp:Label>
        <asp:HiddenField ID="HidUserId" runat="server" />
    </div>
    </form>
</body>
</html>




where i used code in page load :- whenever i did not debug this code its not work properly, each and every time its need to nessary,
Posted
Updated 31-Mar-13 23:54pm
v2
Comments
Prasad Khandekar 1-Apr-13 1:45am    
Not enough information to help you.
Vani Kulkarni 1-Apr-13 2:00am    
Please post that piece of code. But your question is wierd, code working while debugging and not working without debugging is something understandable.

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



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