protected void SubsubcategoryStepSelectedIndexChanged(object sender, EventArgs e) { List <PubEntAdmin.BLL.SubSubCat> l_SubSubCatColl = PE_DAL.GetSubSubCatalogSubjectBySubSubCatalogID( System.Convert.ToInt32(((DropDownList)sender).SelectedValue)); if (l_SubSubCatColl.Count > 0) { PubEntAdmin.BLL.SubSubCat l_SubSubCat = l_SubSubCatColl[0]; ((Label)SubsubcategoryEditStep.ContentTemplateContainer. FindControl("lblcategoryStep")).Text = l_SubSubCat.SubName; ((Label)SubsubcategoryEditStep.ContentTemplateContainer. FindControl("lblsubcategoryStep")).Text = l_SubSubCat.SubCatName; AddSubsubcat l_AddSubsubcat = ((AddSubsubcat)((TabContainer)SubsubcategoryStep. ContentTemplateContainer.FindControl("tabCont")).Tabs[0].FindControl("AddSubsubcat1")); l_AddSubsubcat.ClearAll(); EditSubsubcat l_EditSubsubcat = ((EditSubsubcat)SubsubcategoryEditStep.ContentTemplateContainer. FindControl("EditSubsubcat1")); l_EditSubsubcat.SubSubCatID = this.SubSubCatID = l_SubSubCat.SubSubCatID; this.SubSubCatName = l_SubSubCat.SubSubCatName; l_EditSubsubcat.BindValues(l_SubSubCat.SubCatID.ToString(), l_SubSubCat.SubSubCatName); } this.IncrementWizardPage(); this.EnableSubsubcategoryEditTab(); }
protected void EditSubsubcat1Save_Click(object sender, EventArgs e) { EditSubsubcat l_EditSubsubcat = ((EditSubsubcat)SubsubcategoryEditStep.ContentTemplateContainer. FindControl("EditSubsubcat1")); l_EditSubsubcat.SecVal(); int l_subsubcatid = l_EditSubsubcat.SubSubCatID; bool blnSaveSubSubCat = PE_DAL.SetSubSubCat(ref l_subsubcatid, l_EditSubsubcat.SubSubCatName, l_EditSubsubcat.AssignToSubCatID, 1); if (blnSaveSubSubCat) { //if (PubEntAdminManager.TamperProof) //{ // PubEntAdminManager.RedirectEncodedURLWithQS("LookupMgmt.aspx", "sub=" + this.RetSub + "&mode=edit&subcatid=" + this.SubcatID); //} //else //{ // Response.Redirect("~/LookupMgmt.aspx?sub=" + this.RetSub + "&mode=edit&subcatid=" + this.SubcatID); //} this.DecrementWizardPage(); this.EnableSubsubcategoryEditTab(); this.hidSubSubCatIndex.Value = "1"; if (this.SubcatID > 0) { this.BindOptions(this.SubcatID); } else { this.BindOptions(); } } }
protected void EditSubsubcat1Save_Click(object sender, EventArgs e) { EditSubsubcat l_EditSubsubcat = ((EditSubsubcat)SubsubcategoryEditStep.ContentTemplateContainer. FindControl("EditSubsubcat1")); l_EditSubsubcat.SecVal(); int l_subsubcatid = l_EditSubsubcat.SubSubCatID; bool blnSaveSubSubCat = PE_DAL.SetSubSubCat(ref l_subsubcatid, l_EditSubsubcat.SubSubCatName, l_EditSubsubcat.AssignToSubCatID, 1); if (blnSaveSubSubCat) { this.DecrementWizardPage(); this.EnableSubsubcategoryEditTab(); this.hidSubSubCatIndex.Value = "1"; if (this.SubcatID > 0) { this.BindOptions(this.SubcatID); } else { this.BindOptions(); } } }
protected void lnkSubsubategories_Click(object sender, EventArgs e) { EditSubsubcat l_EditSubsubcat = ((EditSubsubcat)SubsubcategoryEditStep.ContentTemplateContainer. FindControl("EditSubsubcat1")); l_EditSubsubcat.BindValues(this.SubSubCatID.ToString(), this.SubSubCatName); DropDownList l_SubCategory = ((DropDownList)((TabContainer)SubsubcategoryStep. ContentTemplateContainer.FindControl("tabCont")).Tabs[1].FindControl("ddlSubSubCategory")); l_SubCategory.SelectedIndex = 0; this.DecrementWizardPage(); this.EnableSubsubcategoryEditTab(); this.hidSubSubCatIndex.Value = "1"; }
public string GetSpellCheckParticipants() { string partipants = ""; if (this.SubsubcatWizard.ActiveStepIndex == 0) { AddSubsubcat l_AddSubsubcat = ((AddSubsubcat)((TabContainer)SubsubcategoryStep. ContentTemplateContainer.FindControl("tabCont")).Tabs[0].FindControl("AddSubsubcat1")); partipants = l_AddSubsubcat.SubsubcatTextClientID; } else if (this.SubsubcatWizard.ActiveStepIndex == 1) { EditSubsubcat l_EditSubsubcat = ((EditSubsubcat)(SubsubcategoryEditStep. ContentTemplateContainer.FindControl("EditSubsubcat1"))); partipants = l_EditSubsubcat.SubSubCatTextClientID; } return(partipants); }