首页上一页 1 下一页尾页 3 条记录 1/1页
明日科技在线考试页面自定义方法
发表在ASP.NET图书答疑
2011-01-16
是否精华
是
否
版块置顶:
是
否
老师您好:
明日科技在线考试页面自定义方法getcom(1),getcom(2),getcom(3),getcom(4),getcom(5)在这个页面中分别起什么作用?我是一个初学者对自定义方法不多理解,请老师指点一下
代码如下:
if (!IsPostBack)
{
this.getCom(1);
this.getCom(2);
}
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>");
明日科技在线考试页面自定义方法getcom(1),getcom(2),getcom(3),getcom(4),getcom(5)在这个页面中分别起什么作用?我是一个初学者对自定义方法不多理解,请老师指点一下
代码如下:
if (!IsPostBack)
{
this.getCom(1);
this.getCom(2);
}
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>");