473,396 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Code not working in mozilla firefox

CS Page::::
Expand|Select|Wrap|Line Numbers
  1. using System;
  2. using System.Collections;
  3. using System.Configuration;
  4. using System.Data;
  5. using System.Linq;
  6. using System.Web;
  7. using System.Web.Security;
  8. using System.Web.UI;
  9. using System.Text;
  10. using System.IO;
  11. using System.Web.UI.HtmlControls;
  12. using System.Web.UI.WebControls;
  13. using System.Web.UI.WebControls.WebParts;
  14. using System.Xml.Linq;
  15. using Ondemand.Dashboard.Lib.User;
  16. using Ondemand.Dashboard.Lib.Security;
  17.  
  18. public partial class TimeSheetMonthlyReport : System.Web.UI.Page
  19. {
  20.     string RoleName;
  21.     int NoOfDays;
  22.     static string month;
  23.     static string year;
  24.     static string SelectedDate;
  25.     StringBuilder str = new StringBuilder();
  26.     DataTable Role = new DataTable();
  27.     DataTable TeamMember = new DataTable();
  28.     int odoUserIdtoProject = 0;
  29.     int odoUserIDProject = 0;
  30.  
  31.  
  32.     protected void Page_Load(object sender, EventArgs e)
  33.     {
  34.         if (OdoUserId == 0)
  35.         {
  36.             Response.Redirect("../Login.aspx");
  37.  
  38.         }
  39.         else
  40.         {
  41.  
  42.             if (!Page.IsPostBack)
  43.             {
  44.  
  45.  
  46.  
  47.                 ddmonth.SelectedValue = DateTime.Now.Month.ToString();
  48.                 ddlyear.SelectedValue = DateTime.Now.Year.ToString();
  49.                 DIV1.Visible = false;
  50.                 ddlyear.Items.Add(DateTime.Now.Year.ToString());
  51.                 ddlyear.Items.Add((DateTime.Now.Year - 1).ToString());
  52.                 ddlyear.Items.Add((DateTime.Now.Year - 2).ToString());
  53.  
  54.                 ddlyear.SelectedIndex = 0;
  55.                 int totalNoOfDays = CalculateNoOfDays(DateTime.Now.Month, DateTime.Now.Year);
  56.                 ddlBindProjects();
  57.                 TR1.Visible = false;
  58.  
  59.  
  60.             }
  61.  
  62.         }
  63.  
  64.  
  65.  
  66.     }
  67.  
  68.     public void ddlBindTeam()
  69.     {
  70.         if (Convert.ToInt32(ddlproject.SelectedValue) != 0)
  71.         {
  72.             TeamMember = ProjectAlerts.odoBindTeamMemberSpecificToProject(TimeSheetMonthlyReport.OdoUserId, Convert.ToInt32(ddlproject.SelectedValue));
  73.             if (TeamMember.Rows.Count > 0)
  74.             {
  75.                 ddlteam.DataSource = TeamMember;
  76.                 ddlteam.DataValueField = "ID";
  77.                 ddlteam.DataTextField = "UserName";
  78.                 ddlteam.DataBind();
  79.                 ddlteam.Items.Insert(0, "--Select--");
  80.                 ddlteam.Items[0].Value = "0";
  81.                 TR1.Visible = true;
  82.             }
  83.             else
  84.             {
  85.                 TR1.Visible = false;
  86.             }
  87.  
  88.         }
  89.  
  90.         else
  91.         {
  92.             TR1.Visible = false;
  93.         }
  94.  
  95.     }
  96.  
  97.     public int CalculateNoOfDays(int month, int year)
  98.     {
  99.         NoOfDays = System.DateTime.DaysInMonth(year, month);
  100.         return NoOfDays;
  101.     }
  102.  
  103.     public string fn_data()
  104.     {
  105.  
  106.         DataTable DtResult;
  107.  
  108.         if (odoUserIdtoProject == 0)
  109.         {
  110.             DtResult = ManageTimeSheet.GetUserName(OdoUserId);
  111.             odoUserIDProject = TimeSheetMonthlyReport.OdoUserId;
  112.         }
  113.         else
  114.         {
  115.             DtResult = ManageTimeSheet.GetUserName(odoUserIdtoProject);
  116.             odoUserIDProject = odoUserIdtoProject;
  117.  
  118.         }
  119.         if (Convert.ToString(DtResult.Rows[0]["UserName"]) == "Nigel Gower")
  120.         {
  121.  
  122.         }
  123.         else
  124.         {
  125.  
  126.             string UserName = Ondemand.Dashboard.Lib.General.DataLayerBase.GetStringData(DtResult.Rows[0]["UserName"]);
  127.  
  128.             bool flagSunday = false;
  129.             bool flagSaturday = false;
  130.             str.Append("<table width='100%' align='center' cellpadding='2' cellspacing='0' style='background-color:#dce899'>");
  131.             str.Append("<tr><td align='center'><font  style='font-weight:lighter' color='black'>Time Sheet Report of </font><font color='black'><b>" + UserName + "</b></font><font  style='font-weight:lighter' color='black'> for the Month of</font><font color='black'><b> " + Convert.ToString(ddmonth.SelectedItem.Text) + "</b></font>&nbsp;<font color='black'><b>" + Convert.ToString(ddlyear.SelectedItem.Text) + "</b></font></td></tr>");
  132.             str.Append("</table>");
  133.             str.Append("<table width='100%' align='center' cellpadding='2' cellspacing='0' style='background-color:#dce899'>");
  134.             str.Append("<tr  style='background-image:url(../Images/bg.gif);height:22' class='text-white'>");
  135.             str.Append("<td width='2%' ><strong></strong></td>");
  136.             str.Append("<td width='17%'  align='left' valign='middle'><small><font  face=Verdana, Arial, Helvetica, sans-serif color ='#FFFFFF'><b>Date<em>(mm/dd/yyyy)</em></b></font></small></td>");
  137.             str.Append("<td width='23%'  align='center' valign='middle' ><small><font face=Verdana, Arial, Helvetica, sans-serif color ='#FFFFFF'><b>Project Related/Non Project Related Activity</b></font></small></td>");
  138.             str.Append("<td width='18%'  align='center' valign='middle' ><small><font face=Verdana, Arial, Helvetica, sans-serif color ='#FFFFFF'><b>Outdoor Activity</b></font></small></td>");
  139.             str.Append("<td width='19%'  align='center' valign='middle' ><small><font face=Verdana, Arial, Helvetica, sans-serif color ='#FFFFFF'><b>Short Leave</b></font></small></td>");
  140.             str.Append("<td width='21%'  align='center' valign='middle' ><small><font face=Verdana, Arial, Helvetica, sans-serif color ='#FFFFFF'><b>Total Time</b></font></small></td>");
  141.             str.Append("</tr>");
  142.             str.Append("</table></br>");
  143.  
  144.             string menuTSsign = "menuTSsign";
  145.             for (int i = 1; i <= NoOfDays; i++)
  146.             {
  147.  
  148.                 string suboutline = "suboutline";
  149.                 string displaydate = Convert.ToDateTime(ddmonth.SelectedValue.ToString() + "/" + i.ToString() + "/" + ddlyear.SelectedValue.ToString()).ToShortDateString();
  150.                 string DayOfWeek = Convert.ToDateTime(displaydate).DayOfWeek.ToString();
  151.                 if (DayOfWeek == "Saturday")
  152.                 {
  153.                     flagSaturday = true;
  154.                 }
  155.  
  156.                 if (DayOfWeek == "Sunday")
  157.                 {
  158.                     flagSunday = true;
  159.  
  160.                 }
  161.  
  162.  
  163.  
  164.                 DataTable GetActivityHours = new DataTable();
  165.  
  166.                 GetActivityHours = ProjectAlerts.GetActivityHours(odoUserIDProject, displaydate);
  167.  
  168.                 string ProjectRelatedHrs = GetActivityHours.Rows[0]["ProjectActivity"].ToString();
  169.                 string OutDoor = GetActivityHours.Rows[0]["OutDoor"].ToString();
  170.                 string ShortLeave = GetActivityHours.Rows[0]["ShortLeave"].ToString();
  171.                 string TotalTime = GetActivityHours.Rows[0]["TotalTime"].ToString();
  172.                 suboutline = suboutline + i;
  173.                 menuTSsign = menuTSsign + i;
  174.  
  175.  
  176.                 str.Append("<table width='100%' align='center' cellpadding='0' cellspacing='0' style='background-color:#dce899'>");
  177.                 if (i % 2 == 1)
  178.                 {
  179.                     str.Append("<tr valign='middle' height='22' bgcolor='#dce899'>");
  180.                 }
  181.                 else
  182.                 {
  183.                     str.Append("<tr valign='middle' height='22' bgcolor='#f2f9cb'>");
  184.                 }
  185.  
  186.                 str.Append("<td width='2%' height='22'><div runat='server' id='menuTS' onclick='javascript:showhide(" + suboutline + "," + menuTSsign + ");' Style=cursor:pointer; font-Family:Arial; text-decoration:none; font-weight:bold'><img src='../Images/ifr_redarrow_right.gif' id='" + menuTSsign + "' ></div></td>");
  187.                 str.Append("<td width='17%' style='color:black' height='22' align='left' valign='middle'><small>" + displaydate + "</small>");
  188.  
  189.                 if (flagSaturday == true)
  190.                 {
  191.                     str.Append("<font color='#FF0000'><small>");
  192.                     str.Append("  (Saturday)");
  193.                     str.Append("</small></font>");
  194.                     flagSaturday = false;
  195.                 }
  196.                 if (flagSunday == true)
  197.                 {
  198.                     str.Append("<font color='#FF0000'><small>");
  199.                     str.Append("  (Sunday)");
  200.                     str.Append("</small></font>");
  201.                     flagSunday = false;
  202.                 }
  203.  
  204.                 str.Append("</td>");
  205.                 str.Append("<td width='23%' height='22' align='center' valign='middle' ><font color='Black'><small>" + ProjectRelatedHrs + "</small></font></td>");
  206.                 str.Append("<td width='18%' height='22' align='center' valign='middle' ><font color='Black'><small>" + OutDoor + "</small></font></td>");
  207.                 str.Append("<td width='19%' height='22' align='center' valign='middle' ><font color='Black'><small>" + ShortLeave + "</small></font></td>");
  208.                 str.Append("<td width='21%' height='22' align='center' valign='middle' ><font color='Black'><small>" + TotalTime + "</small></font></td>");
  209.                 str.Append("</tr>");
  210.                 str.Append("</table>");
  211.  
  212.  
  213.                 DataTable ViewDetails = ProjectAlerts.GetProjectTimeSheetDetails(odoUserIDProject, displaydate);
  214.                 str.Append("<div id=" + suboutline + " style='display:none;'>");
  215.                 str.Append("<table  width=100% border=0 cellspacing=0 cellpadding=0 >");
  216.                 str.Append("<tr bgcolor=#808d35  valign=middle align=center>");
  217.                 str.Append("<td height='26'colspan=6 style='background-image:url(../Images/bg.gif)' class='text-white'><font size=2 face=Verdana, Arial, Helvetica, sans-serif><strong>");
  218.                 str.Append("View Details");
  219.                 str.Append("</strong>&nbsp;&nbsp; </font></td>");
  220.                 str.Append("</tr>");
  221.  
  222.                 if (ViewDetails.Rows.Count > 0)
  223.                 {
  224.  
  225.                     str.Append("<tr bgcolor='#dce899'>");
  226.                     str.Append("<td width=5% align='center'  height=22><strong><font size=1 color=Black face=Verdana, Arial, Helvetica, sans-serif>S.No.</font></strong></td>");
  227.                     str.Append("<td width=15% align='center' height=22 ><font size=1 color=Black face=Verdana, Arial, Helvetica, sans-serif><strong>Project Name</strong></font></td>");
  228.                     str.Append("<td width=20% align='center' height=22 ><strong><font color=Black size=1 face=Verdana, Arial, Helvetica, sans-serif>Activity</font></strong></td>");
  229.                     str.Append("<td width=30% align='center' height=22><strong><font color=Black size=1 face=Verdana, Arial, Helvetica, sans-serif>Description</font></strong></td>");
  230.                     str.Append("<td width=30% align='center'  height=22 ><strong><font color=Black size=1 face=Verdana, Arial, Helvetica, sans-serif>Time Spent</font></strong></td>");
  231.                     str.Append("</tr>");
  232.                 }
  233.                 else
  234.                 {
  235.                     if (i % 2 == 1)
  236.                     {
  237.                         str.Append("<tr bgcolor=#dce899  valign=middle align=center>");
  238.                     }
  239.                     else
  240.                     {
  241.                         str.Append("<tr bgcolor=#f2f9cb  valign=middle align=center>");
  242.  
  243.                     }
  244.  
  245.                     str.Append("<td height='12'colspan=6 ><font color='Red' size=2 face=Verdana, Arial, Helvetica, sans-serif><strong>");
  246.                     str.Append("No record exists");
  247.                     str.Append("</strong>&nbsp;&nbsp; </font></td>");
  248.                     str.Append("</tr>");
  249.                 }
  250.  
  251.                 if (ViewDetails.Rows.Count > 0)
  252.                 {
  253.                     for (int j = 1; j <= ViewDetails.Rows.Count; j++)
  254.                     {
  255.                         str.Append("<tr bgcolor='#e3e0e0'>");
  256.                         str.Append("<td width=5% align='center' height=22 ><strong><font size=1 color=blue face=Verdana, Arial, Helvetica, sans-serif>" + j + "</font></strong></td>");
  257.                         str.Append("<td width=15% align='center' height=22><font size=1 color=blue face=Verdana, Arial, Helvetica, sans-serif><strong>" + ViewDetails.Rows[j - 1]["Title"].ToString() + "</strong></font></td>");
  258.                         str.Append("<td width=20% align='center' height=22><strong><font color=blue size=1 face=Verdana, Arial, Helvetica, sans-serif>" + ViewDetails.Rows[j - 1]["Activity"].ToString() + "</font></strong></td>");
  259.                         str.Append("<td width=30% align='center' height=22 ><strong><font color=blue size=1 face=Verdana, Arial, Helvetica, sans-serif>" + ViewDetails.Rows[j - 1]["Description"].ToString() + "</font></strong></td>");
  260.                         str.Append("<td width=30% align='center' height=22 ><strong><font color=blue size=1 face=Verdana, Arial, Helvetica, sans-serif>" + ViewDetails.Rows[j - 1]["TimeSpent"].ToString() + "</font></strong></td>");
  261.                         str.Append("</tr>");
  262.  
  263.                     }
  264.  
  265.                 }
  266.  
  267.                 str.Append("</table>");
  268.                 str.Append("</div>");
  269.  
  270.  
  271.             }
  272.  
  273.         }
  274.  
  275.  
  276.         return str.ToString();
  277.  
  278.  
  279.  
  280.     }
  281.  
  282.     public string monthtotal()
  283.     {
  284.         DataTable _dttotal = new DataTable();
  285.         _dttotal = ProjectAlerts.GetProjectTimeSheethours(odoUserIDProject, Convert.ToInt32(ddmonth.SelectedValue), Convert.ToInt32(ddlyear.SelectedValue));
  286.         StringBuilder _sb = new StringBuilder();
  287.         _sb.Append("<table width='100%' align='center' cellpadding='2' cellspacing='0' style='background-color:#dce899'>");
  288.         _sb.Append("<tr><td align='center'><font  style='font-weight:lighter' color='black'><b>Month Total Time </b></font></td></tr>");
  289.         _sb.Append("</table>");
  290.         _sb.Append("<table width='100%' align='center' cellpadding='2' cellspacing='0' style='background-color:#dce899'>");
  291.         _sb.Append("<tr  style='background-image:url(../Images/bg.gif);height:22' class='text-white'>");
  292.         _sb.Append("<td width='2%' ><strong></strong></td>");
  293.         _sb.Append("<td width='23%'  align='center' valign='middle' ><small><font face=Verdana, Arial, Helvetica, sans-serif color ='#FFFFFF'><b>Project Related/Non Project Related Activity</b></font></small></td>");
  294.         _sb.Append("<td width='18%'  align='center' valign='middle' ><small><font face=Verdana, Arial, Helvetica, sans-serif color ='#FFFFFF'><b>Outdoor Activity</b></font></small></td>");
  295.         _sb.Append("<td width='19%'  align='center' valign='middle' ><small><font face=Verdana, Arial, Helvetica, sans-serif color ='#FFFFFF'><b>Short Leave</b></font></small></td>");
  296.         _sb.Append("<td width='21%'  align='center' valign='middle' ><small><font face=Verdana, Arial, Helvetica, sans-serif color ='#FFFFFF'><b>Total Time</b></font></small></td>");
  297.         _sb.Append("</tr>");
  298.         _sb.Append("</table></br>");
  299.         if (_dttotal.Rows.Count > 0)
  300.         {
  301.             _sb.Append("<table width='100%' align='center' cellpadding='2' cellspacing='0' style='background-color:#dce899'>");
  302.             _sb.Append("<tr class='text-white'>");
  303.             _sb.Append("<td width='2%' ><strong></strong></td>");
  304.             _sb.Append("<td width='23%'  align='center' valign='middle' ><font color='Black'><small>" + _dttotal.Rows[0]["Project_Or_Non_Project"] + "</small></font></td>");
  305.             _sb.Append("<td width='18%'  align='center' valign='middle' ><font color='Black'><small>" + _dttotal.Rows[0]["outdoor"] + "</small></font></td>");
  306.             _sb.Append("<td width='19%'  align='center' valign='middle' ><font color='Black'><small>" + _dttotal.Rows[0]["shortleave"] + "</small></font></td>");
  307.             _sb.Append("<td width='21%'  align='center' valign='middle' ><font color='Black'><small>" + _dttotal.Rows[0]["Total"] + "</small></font></td>");
  308.             _sb.Append("</tr>");
  309.             _sb.Append("</table></br>");
  310.  
  311.  
  312.         }
  313.  
  314.  
  315.         return _sb.ToString();
  316.  
  317.     }
  318.  
  319.     public void ddlBindProjects()
  320.     {
  321.  
  322.         DataTable ProjectList = ProjectAlerts.odoBindProjects(TimeSheetMonthlyReport.OdoUserId);
  323.         if (ProjectList.Rows.Count > 0)
  324.         {
  325.             ddlproject.DataSource = ProjectList;
  326.             ddlproject.DataValueField = "ID";
  327.             ddlproject.DataTextField = "Title";
  328.             ddlproject.DataBind();
  329.             ddlproject.Items.Insert(0, "--Select--");
  330.             ddlproject.Items[0].Value = "0";
  331.         }
  332.         else
  333.         {
  334.             TR2.Visible = false;
  335.             TR1.Visible = false;
  336.  
  337.         }
  338.     }
  339.  
  340.  
  341.     protected void ddlproject_SelectedIndexChanged(object sender, EventArgs e)
  342.     {
  343.         DIV1.Visible = false;
  344.         ddlBindTeam();
  345.  
  346.     }
  347.     protected void ddlteam_SelectedIndexChanged(object sender, EventArgs e)
  348.     {
  349.         DIV1.Visible = false;
  350.         odoUserIdtoProject = Convert.ToInt32(ddlteam.SelectedValue);
  351.  
  352.     }
  353.     protected void btnGo_Click(object sender, EventArgs e)
  354.     {
  355.  
  356.         DIV1.Visible = true;
  357.  
  358.         CalculateNoOfDays(Convert.ToInt16(ddmonth.SelectedValue), Convert.ToInt16(ddlyear.SelectedValue));
  359.  
  360.  
  361.     }
  362.  
  363.  
  364.     public static int OdoUserId            //The OdoUserId property
  365.     {
  366.         get
  367.         {
  368.             UserProfile getOdoUserId = new UserProfile();
  369.             return Convert.ToInt16(getOdoUserId["odoUserID"]);
  370.         }
  371.     }
  372.     public static int OdoRoleId         //The odoRoleID property
  373.     {
  374.         get
  375.         {
  376.             UserProfile getOdoRoleId = new UserProfile();
  377.             return Convert.ToInt16(getOdoRoleId["odoRoleID"]);
  378.         }
  379.     }
  380. }
  381.  




ASPX PAGE:




Expand|Select|Wrap|Line Numbers
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="TimeSheetMonthlyReport.aspx.cs" Inherits="TimeSheetMonthlyReport" MasterPageFile="~/MasterProject.master"  %>
  2.  
  3. <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
  4.        <link href="../App_Themes/Style/DashStyleSheet.css" type="text/css" rel="stylesheet" />   
  5.  
  6.        <script language="javascript" type="text/javascript" src="../Script/JS/Project.js"></script>
  7.        <script language="javascript" type="text/javascript">
  8.         function hide()
  9.             {          
  10.             document.getElementById("ctl00_ContentPlaceHolder1_DIV1").style.display='none';
  11.             }
  12.  
  13.         function showhide(s1,s2)
  14.         {    
  15.         alert("sanjay");
  16.            alert(s1 +" : "+s2);
  17.             Open=new Image();
  18.             Closed=new Image();
  19.             Open.src="../Images/ifr_redarrow_down.gif";
  20.             Closed.src="../Images/ifr_redarrow_right.gif";
  21.             if (s1.style.display=='none')
  22.             {
  23.                 s1.style.display='';
  24.                 s2.src=Open.src;
  25.             }
  26.             else
  27.             {
  28.                 s1.style.display='none' 
  29.                 s2.src=Closed.src;
  30.  
  31.             }
  32.  
  33.         }    
  34. </script>
  35.   </asp:Content>
  36.  
  37. <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  38.  
  39.  
  40.     <div style="margin-top:0px;">
  41.       <asp:ScriptManager ID="ScriptManager1" EnablePageMethods="true" EnablePartialRendering="true" runat="server">
  42.                                                 </asp:ScriptManager>
  43.        <div class="timesheet_maindiv">
  44.   <div class="timesheetdiv">
  45.     <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  46.       <tr>
  47.         <td width="13" align="right"><img src='<%=ResolveClientUrl("~/Images/bg-l.gif")%>' width="13" height="27" alt="" /></td>
  48.         <td width="1311" style="background-image:url(../Images/bg-m.gif)" class="timesheet_heading">
  49.             » Time Sheet &nbsp;» Report</td>
  50.         <td width="13"><img src='<%=ResolveClientUrl("~/Images/bg-r.gif")%>' width="13" height="27" alt="" /></td>
  51.       </tr>
  52.     </table>
  53.   </div>
  54.   <div class="timesheetdiv">
  55.     <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  56.       <tr>
  57.         <td><div class="timesheet_div">
  58.                 <table width="96%" border="0" align="center" cellpadding="5" cellspacing="0" class="timesheet_tab">
  59.  
  60.                   <tr id="TR2" runat="server" >
  61.                     <td width="40%" class="timesheet_txt">Select Project </td>
  62.                     <td width="56%"> 
  63.                     <asp:dropdownlist id="ddlproject" CssClass="timesheet_droplist" AutoPostBack="true" 
  64.                             runat="server" onselectedindexchanged="ddlproject_SelectedIndexChanged"></asp:dropdownlist>
  65.                             <asp:RequiredFieldValidator ID="reqvalproject" runat="server" ControlToValidate="ddlproject" SetFocusOnError="true" InitialValue="0" TabIndex="1" ValidationGroup="grpreport" ErrorMessage="Please select project"></asp:RequiredFieldValidator>
  66.  
  67.  
  68.                    </td>
  69.                   </tr>
  70.  
  71.                   <tr id="TR1" runat="server" >
  72.                     <td width="40%" class="timesheet_txt">Select Name </td>
  73.                     <td width="56%"> 
  74.                     <asp:dropdownlist CssClass="timesheet_droplist" id="ddlteam" 
  75.                             runat="server" onselectedindexchanged="ddlteam_SelectedIndexChanged"></asp:dropdownlist>
  76.                             <asp:RequiredFieldValidator ID="reqvalteam" runat="server" ControlToValidate="ddlteam" SetFocusOnError="true" InitialValue="0" TabIndex="2" ValidationGroup="grpreport" ErrorMessage="Please select name"></asp:RequiredFieldValidator>
  77.  
  78.  
  79.                    </td>
  80.                   </tr>
  81.                   <tr >
  82.                     <td width="40%" class="timesheet_txt">Select Month</td>
  83.                     <td width="56%"><asp:dropdownlist  id="ddmonth" runat="server" TabIndex="3" CssClass="timesheet_droplist"> 
  84.  
  85.  
  86.                                                     <asp:ListItem Value="1">January</asp:ListItem>
  87.                                                     <asp:ListItem Value="2">February</asp:ListItem>
  88.                                                     <asp:ListItem Value="3">March</asp:ListItem>
  89.                                                     <asp:ListItem Value="4">April</asp:ListItem>
  90.                                                     <asp:ListItem Value="5">May</asp:ListItem>
  91.                                                     <asp:ListItem Value="6">June</asp:ListItem>
  92.                                                     <asp:ListItem Value="7">July</asp:ListItem>
  93.                                                     <asp:ListItem Value="8">August</asp:ListItem>
  94.                                                     <asp:ListItem Value="9">September</asp:ListItem>
  95.                                                     <asp:ListItem Value="10">October</asp:ListItem>
  96.                                                     <asp:ListItem Value="11">November</asp:ListItem>
  97.                                                     <asp:ListItem Value="12">December</asp:ListItem>
  98.                                                 </asp:dropdownlist>                  </td>
  99.                   </tr>
  100.                   <tr>
  101.                     <td width="40%" class="timesheet_txt">Select Year </td>
  102.                     <td width="56%">
  103.                      <asp:dropdownlist id="ddlyear" CssClass="timesheet_droplist" TabIndex="4"  runat="server"></asp:dropdownlist> 
  104.  
  105.                      </td>
  106.                   </tr>
  107.                   <tr>
  108.                     <td  class="timesheet_txt" >&nbsp;</td>
  109.                     <td>&nbsp;</td>
  110.                   </tr>
  111.                 </table>
  112.         </div></td>
  113.       </tr>
  114.       <tr class="timesheet_bg">
  115.         <td><table width="266" border="0" align="center" cellpadding="0" cellspacing="0">
  116.           <tr>
  117.             <td width="82" height="38">
  118.             <div class="timesheet_button">
  119.             <asp:button id="btnGo" Width="85%"  runat="server" CssClass="button" TabIndex="5" ValidationGroup="grpreport"  Text="Go" 
  120.                     onclick="btnGo_Click"></asp:button>
  121.              </div>
  122.              </td>
  123.             <td width="103"><div class="printreport_button">
  124.             <input id="btnPrint" style="CURSOR: hand;" class="button" onclick="javascript:window.print();"
  125.                                                     type="button" tabindex="6" value="Print Report" name="btnPrint"/></div></td>
  126.             <td width="81">
  127.             <div class="timesheet_button">
  128.  
  129.             <input id="btnback" class="button" type="button" value="Back" tabindex="7" name="btnback" onclick="javascript:history.go(-2)" />
  130.             </div>
  131.             </td>
  132.           </tr>
  133.         </table>
  134.  
  135.  
  136.  
  137.         </td>
  138.       </tr>
  139.     </table>
  140.   </div>
  141. </div>
  142.  
  143.     </div>
  144.  
  145.  
  146.     <asp:UpdatePanel ID="update1" runat="server" UpdateMode="Conditional">
  147.     <ContentTemplate>
  148.     <div id="DIV1"  style="background-color:#f2f9cb;" runat="server">
  149.  
  150.        <%=fn_data()%>
  151.        <%=monthtotal()%>
  152.  
  153.      </div>
  154.     </ContentTemplate>
  155.     <Triggers>
  156.     <asp:AsyncPostBackTrigger ControlID="btnGo" EventName="Click" />
  157.  
  158.  
  159.     </Triggers>
  160.  
  161.     </asp:UpdatePanel>
  162.  
  163.  
  164. </asp:Content>
Nov 8 '10 #1
1 2497
Dormilich
8,658 Expert Mod 8TB
what exactly is not working?
Nov 8 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Sergey Ilinsky | last post by:
Well, while working on a rich ui with DHTML I discovered the following problem: Mozilla/Firefox seems to be wrong when rendered elements with sizes given in percents and that are placed into...
0
by: BACON | last post by:
I'm just starting the process of reorganising my modest little website and cleaning up all the HTML, and the logical place to begin was with the homepage. I made a simple little ASP.NET control...
1
by: ajaysoniji | last post by:
Hi, I am using this code to read the option values from a select option. I am getting the reference of that select option in arg1. Its working fine with mozilla firefox but not with Internet...
14
by: menakasrinivasagam | last post by:
my coding is working in mozilla firefox.but not working in Internet explorer.plz give suggestion to rectify this problem
9
by: javakid | last post by:
Hi Following form validatioin code is working fine on IE but not working on Mozilla Firefox V2. Can any body suggest? Regards <script ="JAVASCRIPT" type="text/javascript">...
2
by: sajithamol | last post by:
How can i migrate one application from IE to Mozilla Firefox. while working in IE , javascript was working perfectly . But when i used Mozilla firefox , javascript not working. How can i make one...
3
by: kepskp | last post by:
i just write code for select option in combo box which i m select but when i press search button and then click on back button then there in no option selected. and that same code working in ie7 and...
9
by: mukeshrasm | last post by:
hi I am passing the value of select to a function which is called on click event of button. here is the code <select name="ctName" style="width:300px;" id="clientname" > ...
4
by: Shenker | last post by:
Hi, I'd need some way to prevent users from selecting text in a web page. I'm only interested in Mozilla Firefox family browsers. I came with this javascript snippet so far: onmousedown =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.