Beispiel #1
0
 protected void Wizard1_ActiveStepChanged(object sender, EventArgs e)
 {
     if ((ScriptManager1.IsInAsyncPostBack) && (!ScriptManager1.IsNavigating))
     {
         string currentStep = Wizard1.ActiveStepIndex.ToString();
         ScriptManager1.AddHistoryPoint("Wizard1", Wizard1.ActiveStepIndex.ToString(),
                                        "Step " + (Wizard1.ActiveStepIndex + 1).ToString());
     }
 }
Beispiel #2
0
 protected void Wizard1_ActiveStepChanged(object sender, EventArgs e)
 {
     // Проверить, что это асинхронная обратная отправка,
     // а не попытка выполнить навигацию
     if ((ScriptManager1.IsInAsyncPostBack) && (!ScriptManager1.IsNavigating))
     {
         string currentStep = Wizard1.ActiveStepIndex.ToString();
         ScriptManager1.AddHistoryPoint("Wizard1", Wizard1.ActiveStepIndex.ToString(),
                                        "Шаг " + (Wizard1.ActiveStepIndex + 1).ToString());
     }
 }
Beispiel #3
0
        protected void ddActions_SelectedIndexChanged(object sender, EventArgs e)
        {
            ////for broswer back button
            if (ScriptManager1.IsInAsyncPostBack && !ScriptManager1.IsNavigating)
            {
                ScriptManager1.AddHistoryPoint("historyPoint", ddActions.SelectedIndex.ToString(), ddActions.SelectedValue);
            }


            hideAllCU();

            if (ddActions.SelectedValue.ToString().ToLower().Trim() == "Find".ToLower())
            {
                find.Visible = true;
            }

            if (ddActions.SelectedValue.ToString().ToLower().Trim() == "Song Number".ToLower())
            {
                songNumber.Visible = true;
            }


            if (ddActions.SelectedValue.ToString().ToLower().Trim() == "Waiting List".ToLower())
            {
                currentList1.Visible = true;
            }


            if (ddActions.SelectedValue.ToString().ToLower().Trim() == "Video".ToLower())
            {
                video.Visible = true;
            }


            if (ddActions.SelectedValue.ToString().ToLower().Trim() == "Volume".ToLower())
            {
                volume.Visible = true;
            }



            if (ddActions.SelectedValue.ToString().ToLower().Trim() == "Tune".ToLower())
            {
                tune.Visible = true;
            }



            if (ddActions.SelectedValue.ToString().ToLower().Trim() == "advanced".ToLower())
            {
                advanced.Visible = true;
            }
        }
Beispiel #4
0
    protected void imgBtn_Click(object sender, ImageClickEventArgs e)
    {
        string ImgName  = l.Where(x => x.FileName == imgBtn.ImageUrl.Substring(imgBtn.ImageUrl.LastIndexOf("/") + 1)).Select(x => x.FileName.Substring(x.FileName.LastIndexOf("\\") + 1)).First();
        int    ImgIndex = l.Where(x => x.FileName == ImgName).Single().Index + 1;

        if (ImgIndex > 3)
        {
            ImgIndex = 0;
        }
        ImageInfo img = l.Where(y => y.Index == ImgIndex).Single();

        ScriptManager1.AddHistoryPoint("imgIndex", img.Index.ToString(), img.FileName);
        imgBtn.ImageUrl = "images/" + img.FileName;
    }
 protected void CheckBoxList1_SelectedIndexChanged(object sender, EventArgs e)
 {
     Label1.Text      = CheckBoxList1.SelectedValue;
     Label1.BackColor = System.Drawing.Color.FromName(CheckBoxList1.SelectedValue);
     ScriptManager1.AddHistoryPoint("SELECTEDCOLOR", CheckBoxList1.SelectedValue);
 }
Beispiel #6
0
 protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
 {
     Label1.Text      = DropDownList1.SelectedValue;
     Label1.BackColor = System.Drawing.Color.FromName(DropDownList1.SelectedValue);
     ScriptManager1.AddHistoryPoint("SelectedValue", DropDownList1.SelectedValue);
 }