Ejemplo n.º 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();
    }
Ejemplo n.º 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();
 }
Ejemplo n.º 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();
 }