protected void Page_Load(object sender, EventArgs e) { if (string.IsNullOrEmpty(dil)) { dil = Snlg_ConfigValues.defaultLangId; } if (editetKtgID == null && !Page.IsPostBack) { FVSyf.ChangeMode(FormViewMode.Insert); LblFBas.Text = "Yeni Kategori Oluşturun"; } else { LblFBas.Text = "Kategori Bilgilerini Düzenleyin"; } if (!Page.IsPostBack) { //memüler listeleniyor StringBuilder SBMenu = new StringBuilder(); MenuleriDoldur(DTKtgler, SBMenu, DTKtgler.Select("UstId IS NULL", "Sira")); ltrMenu.Text = SBMenu.ToString(); } }
protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["sid"] == null && !Page.IsPostBack) { FVSyf.ChangeMode(FormViewMode.Insert); } }
protected void SDSSyf_Selected(object sender, SqlDataSourceStatusEventArgs e) { if (e.AffectedRows < 1) { FVSyf.ChangeMode(FormViewMode.Insert); } else { FVSyf.ChangeMode(FormViewMode.Edit); } }
protected void Page_Load(object sender, EventArgs e) { if (string.IsNullOrEmpty(dil)) { dil = Snlg_ConfigValues.defaultLangId; } if (editedMenuID == null && !Page.IsPostBack) { FVSyf.ChangeMode(FormViewMode.Insert); LblFBas.Text = "Yeni Menü Öğesi Oluşturun"; } else { LblFBas.Text = "Menü Bilgilerini Düzenleyin"; } if (!Page.IsPostBack) { DDLMenuGroup.DataSource = dtMenuGroup; DDLMenuGroup.DataBind(); DDLMenuGroup.Items.Insert(0, new ListItem("Seçiniz", "-1")); DDLMenuGroup.ClearSelection(); try { DDLMenuGroup.SelectedValue = UCId; } catch { } //memüler listeleniyor StringBuilder SBMenu = new StringBuilder(); MenuleriDoldur(DTMenuler, SBMenu, DTMenuler.Select("UstId IS NULL", "Sira")); ltrMenu.Text = SBMenu.ToString(); if (UCId == "-1") { Pnl1.Visible = false; } else { Pnl1.Visible = true; } } }