首页上一页 1 下一页尾页 2 条记录 1/1页
提交试卷
发表在ASP.NET图书答疑
2011-01-12
是否精华
是
否
版块置顶:
是
否
老师您好:
给我翻译一下 提交试卷 这段代码每条语句的汉语意思与它的作用,我弄不清楚它们的来龙去脉。尽可能详细的。老师先谢谢你们。
//=========================提交试卷===========================
protected void btnSubmit_Click(object sender, EventArgs e)
{
//try
//{
Label3.Visible = Label4.Visible = Label7.Visible = Label8.Visible = Label9.Visible = Label10.Visible = true;
this.lblStuID.Text = Session["StuName"].ToString();
this.lblSubject.Text = Session["SelLession"].ToString();
this.lblQuestion.Text = Session["SelTitle"].ToString();
this.getCom(3);
this.getCom(4);
this.lblTotal.Text = Convert.ToString(int_row1Point + int_row2Point);
dataconn.eccom("insert into tb_StuResult"
+ "(stu_id,which_lesson,taotiid,taotiname,res_single,res_more)"
+ "values('" + lblStuID.Text + "','" + lblSubject.Text + "',"
+ Application["d2"].ToString() + ",'" + lblQuestion.Text + "'," + int_row1Point + "," + int_row2Point + ")");
this.getCom(5);
Response.Write("<script lanuage=javascript>alert('您确定要交卷吗?');localtion='StartExamfra.aspx';</script>");
给我翻译一下 提交试卷 这段代码每条语句的汉语意思与它的作用,我弄不清楚它们的来龙去脉。尽可能详细的。老师先谢谢你们。
//=========================提交试卷===========================
protected void btnSubmit_Click(object sender, EventArgs e)
{
//try
//{
Label3.Visible = Label4.Visible = Label7.Visible = Label8.Visible = Label9.Visible = Label10.Visible = true;
this.lblStuID.Text = Session["StuName"].ToString();
this.lblSubject.Text = Session["SelLession"].ToString();
this.lblQuestion.Text = Session["SelTitle"].ToString();
this.getCom(3);
this.getCom(4);
this.lblTotal.Text = Convert.ToString(int_row1Point + int_row2Point);
dataconn.eccom("insert into tb_StuResult"
+ "(stu_id,which_lesson,taotiid,taotiname,res_single,res_more)"
+ "values('" + lblStuID.Text + "','" + lblSubject.Text + "',"
+ Application["d2"].ToString() + ",'" + lblQuestion.Text + "'," + int_row1Point + "," + int_row2Point + ")");
this.getCom(5);
Response.Write("<script lanuage=javascript>alert('您确定要交卷吗?');localtion='StartExamfra.aspx';</script>");