MyPractise/answer.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class MyPractise_answer : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Request.Cookies["roleid"] != null)
{
Authority myauthority = new Authority();
int RoleID = Convert.ToInt16(Server.HtmlEncode(Request.Cookies["roleid"].Value));
int ModuleID = 39;
if (myauthority.QXExists(RoleID, ModuleID))
{
if (!IsPostBack)
{
int cid = Convert.ToInt16(Request.QueryString["id"].ToString());
Lesson myt = new Lesson();
myt.GetModel(cid);
Literal1.Text = myt.LessonName;
binddr1();
binddr2();
binddr3();
binddr4();
binddr5();
}
// 下载于www.51aspx.com
}
else
{
MessageBox.ShowAndRedirect(this.Page, "对不起!您无权操作此版块。", "../Main.aspx");
}
}
else
{
MessageBox.ShowAndRedirect(this.Page, "对不起!您还没有登录系统。", "../Logout.aspx");
}
}
//单选题
public void binddr1()
{
DanQuestions my = new DanQuestions();
string sqlstr = "1=1 ";
if (Request.QueryString["id"].ToString() != "")
{
sqlstr = sqlstr + " and LessonID = " + Convert.ToInt16(Request.QueryString["id"].ToString()) + "";
}
sqlstr = sqlstr + " order by ID ";
DataView dv = my.GetList(sqlstr).Tables[0].DefaultView;
repCategory1.DataSource = dv;
repCategory1.DataBind();
}
//多选题
public void binddr2()
{
DuoQuestions my = new DuoQuestions();
string sqlstr = "1=1 ";
后面还有 70 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
