/// Function Header******************************************************* /// Function Name: BindEvents /// Function Type: Function /// Functionality: used to get bind the events /// Input: /// Output: /// Return Value: /// Note: /// ********************************************************************* private void BindQuestions() { Entity.CompanyInfo oCompanyInfo = new Entity.CompanyInfo(); oCompanyInfo.StrCategoryName = "x"; oCompanyInfo.ChrIsAnsweredGiven = 'x'; oCompanyInfo.StrQuestionType = "x"; BLL.CompanyManager oCompanyManager = new BLL.CompanyManager(); GVQuestion.DataSource = oCompanyManager.GetQuestionsForHealthCoachFromUser(oCompanyInfo); GVQuestion.DataBind(); oCompanyManager = null; oCompanyInfo = null; }
/// Function Header******************************************************* /// Function Name: BindQuestions /// Function Type: Function /// Functionality: used to get bind the questions which were asked by user(s) /// Input: /// Output: /// Return Value: /// Note: /// ********************************************************************* private void BindQuestions() { Entity.CompanyInfo oCompanyInfo = new Entity.CompanyInfo(); oCompanyInfo.StrCategoryName = ddlCategory.SelectedValue; oCompanyInfo.ChrIsAnsweredGiven = Convert.ToChar(ddlAnsweredGiven.SelectedValue); oCompanyInfo.StrQuestionType = ddlQuestionType.SelectedValue; BLL.CompanyManager oCompanyManager = new BLL.CompanyManager(); GVQuestion.DataSource = oCompanyManager.GetQuestionsForHealthCoachFromUser(oCompanyInfo); GVQuestion.DataBind(); oCompanyManager = null; oCompanyInfo = null; }