private void BindCompanyDetails() { try { BLL.CompanyManager oCompanyManager = new BLL.CompanyManager(); Entity.CompanyInfo oCompanyInfo = new Entity.CompanyInfo(); int intCompanyId = Convert.ToInt32(Request.QueryString["cid"].ToString()); int intCompanyRequestedUserId = Convert.ToInt32(Request.QueryString["id"].ToString()); oCompanyInfo = oCompanyManager.GetCompanyDetailsByCompanyandRequestedUserId(intCompanyId, intCompanyRequestedUserId); if (oCompanyInfo != null) { TextBox txtOrganization = (TextBox)CreateUserWizardStep1.ContentTemplateContainer.FindControl("txtOrganization"); if (txtOrganization != null) { txtOrganization.Text = oCompanyInfo.StrCompanyName; TextBox txtEmail = (TextBox)CreateUserWizardStep1.ContentTemplateContainer.FindControl("Email"); TextBox txtUserName = (TextBox)CreateUserWizardStep1.ContentTemplateContainer.FindControl("UserName"); if (txtEmail != null && txtUserName != null) { txtEmail.Text = oCompanyInfo.StrEmpEmail; txtUserName.Text = oCompanyInfo.StrEmpEmail; txtEmail.Enabled = false; txtUserName.Enabled = false; }} } oCompanyInfo = null; oCompanyManager = null; } catch (Exception ex) { string strTemp = ex.Message; } }