shahab
Junior Contributor
Hi ,there
I am simulating an Online test for a highschool!
Scenario:
In a DataGrid these three columns ->
[Question + ChoosableAnswers(A-b-C-D) + CorrectAnswer]
will bind.The third column as u know should not be apeared in an Exam session! ...So: TestDG.Columns[2].Visible = false ;
Important (1) :ChoosableAnswers is a DDL with 4 value(A-b-C-D)
Important (2) :CorrectAnswer is a label
Essential Problem:How can I get(Estimate) the (mark) of students for test?
I have an answer but I do not know how to programm it :-\
but this is not complete and it needs some change !
I am simulating an Online test for a highschool!
Scenario:
In a DataGrid these three columns ->
[Question + ChoosableAnswers(A-b-C-D) + CorrectAnswer]
will bind.The third column as u know should not be apeared in an Exam session! ...So: TestDG.Columns[2].Visible = false ;
Important (1) :ChoosableAnswers is a DDL with 4 value(A-b-C-D)
Important (2) :CorrectAnswer is a label
Essential Problem:How can I get(Estimate) the (mark) of students for test?
I have an answer but I do not know how to programm it :-\
Code:
private void Button2_Click(object sender, System.EventArgs e)
{
TestDG.Columns[2].Visible = true ;
/*int correct = 0, wrong = 0;
foreach (Row in DataGrid)
{
if (SelectedValueODDropDownList4 == The valueof CorrectAnser InFrontof ItSelf )
correct++;
else
wrong++;
}
Response.Write(correct);
*/
Last edited: