Пример #1
0
    protected void QuestionsRepeater_ItemCommand(object source, RepeaterCommandEventArgs e)
    {
        if (e.CommandName == "setTrue")
        {
            if (Convert.ToBoolean(e.CommandArgument))
            {
                Label1.Text += "1";
            }
            else
            {
                Label1.Text += "0";
            }
        }
        else if (e.CommandName == "setFalse")
        {
            if (!Convert.ToBoolean(e.CommandArgument))
            {
                Label1.Text += "1";
            }
            else
            {
                Label1.Text += "0";
            }
        }
        int number = Convert.ToInt32(NumberOfQuestsHF.Value) + 1;

        NumberOfQuestsHF.Value = number.ToString();
        QuestionsSDS.DataBind();
        CountScore();
    }
Пример #2
0
 protected void EUROButton_Click(object sender, EventArgs e)
 {
     blockButtons();
     //CHECKtb.Text = "work";
     QuestionsSDS.Update();
     QuestionsSDS.SelectParameters[1].DefaultValue = "EURO";
     QuestionsSDS.SelectParameters[0].DefaultValue = "1";
     QuestionsSDS.DataBind();
 }
Пример #3
0
 protected void WCButton_Click(object sender, EventArgs e)
 {
     //Label1.Text = "debilstrasburger";
     blockButtons();
     QuestionsSDS.Update();
     QuestionsSDS.SelectParameters[1].DefaultValue = "WC";
     QuestionsSDS.SelectParameters[0].DefaultValue = "1";
     QuestionsSDS.DataBind();
 }