问题描述
//从数据库中选择多选题case2:SqlDataAdaptermyadapter2=newSqlDataAdapter("select*"+"fromtb_Questionswhereque_type='多选题'andque_lessonid='"+dd1+"'andque_taotiid='"+dd2+"'orderbyiddesc",con);DataSetmyds2=newDataSet();myadapter2.Fill(myds2);DataList2.DataSource=myds2;DataList2.DataBind();//生成多选题题号for(inttID2=1;tID2<=DataList2.Items.Count;tID2++){LabellblDSelect=(Label)DataList2.Items[tID2-1].FindControl("Label24");lblDSelect.Text=tID2.ToString()+"、";}break;//核对单选题答案case3:SqlDataAdaptermyadapter3=newSqlDataAdapter("selectid,que_answer"+"fromtb_Questionswhereque_type='单选题'andque_lessonid="+dd1+"andque_taotiid="+dd2+"orderbyiddesc",con);DataSetmyds3=newDataSet();myadapter3.Fill(myds3);DataRow[]row1=myds3.Tables[0].Select();//计算单选题成绩foreach(DataRowanswer1inrow1){int_row1+=1;if(int_row1<=3){RadioButtonListrbl=(RadioButtonList)(DataList1.Items[int_row1-1].FindControl("RadioButtonList1"));if(rbl.SelectedValue==""){this.lblSel.Text="0";}else{if(answer1["que_answer"].ToString().Trim()==rbl.SelectedValue.ToString().Trim()){int_row1Point+=40/DataList1.Items.Count;this.lblSel.Text=int_row1Point.ToString();}}}}break;要很具体很纤细的那种
解决方案
解决方案二:
小伙是不是要答辩了!
解决方案三:
你怎么知道,求救