Пример #1
0
        /// <summary>
        /// Method Name:BtnDepartment_Click
        /// Description:set Department_Details Page as Source of RightFrame
        /// Author:Bhumi
        /// Created On:6/7/2015
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void BtnDepartment_Click(object sender, EventArgs e)
        {
            objconst = new ConstantMessages();
            HtmlControl frame3 = (HtmlControl)this.FindControl("RightFrame"); //Find Control

            frame3.Attributes["src"] = objconst.strDepartment_DetailsPage;    //Give the Source
        }
Пример #2
0
 /// <summary>
 /// Method Name:BtnDown_Click
 /// Description:Decrement Counter By 1
 /// Author:Bhumi
 /// Created On:3/7/2015
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 public void BtnDown_Click(object sender, EventArgs e)
 {
     try
     {
         if (ValueCount > 0)
         {
             // Decrement the Value.
             ValueCount -= 1;
         }
         else
         {
             objconstant = new ConstantMessages();
             Page.ClientScript.RegisterStartupScript(this.GetType(), "msgbox", "alert('" + objconstant.strDownAlert + "');", true);
         }
     }
     catch (Exception)
     {
         objconstant = new ConstantMessages();
         Response.Redirect(objconstant.strErrorPage, false);
     }
     finally
     {
         objconstant = null;
     }
 }
Пример #3
0
 /// <summary>
 /// Method Name:Page_Load
 /// Description:display database table in web page
 /// Author:Bhumi
 /// Created On:6/7/2015
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         objcommon = new CommonFunction();
         //Query execution
         strbuilder = new StringBuilder("SELECT EmployeeDetailID,Name");
         strbuilder.Append(" FROM EmployeeDetail ");
         gvEmployee.DataSource = objcommon.ConnectionGenerate(strbuilder.ToString()); //Data table as source in gridview
         gvEmployee.DataBind();                                                       //Bind the data
     }
     catch (Exception)
     {
         objconst = new ConstantMessages();
         Response.Redirect(objconst.strErrorPage);
     }
     finally
     {
         strbuilder = null;
         dt_emp     = null;
         objconst   = null;
     }
 }
Пример #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     objconst = new ConstantMessages();
     Response.Write(objconst.strErrorMessage);
 }