PersonInfo/ShowOrder.aspx.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace EasyExam.PersonInfo
{
/// <summary>
/// ShowOrder 的摘要说明。
/// </summary>
public partial class ShowOrder : System.Web.UI.Page
{
string myUserID="";
string myLoginID="";
PublicFunction ObjFun=new PublicFunction();
int intPaperID=0,intOrder=0;
string strPaperType="";
double dblCurTotalMark=0;
#region//************初始化信息*********
protected void Page_Load(object sender, System.EventArgs e)
{
try
{
myUserID=Session["UserID"].ToString();
myLoginID=Session["LoginID"].ToString();
}
catch
{
}
if (myLoginID=="")
{
Response.Redirect("../Login.aspx");
}
//清除缓存
Response.Expires=0;
Response.Buffer=true;
Response.Clear();
intPaperID=Convert.ToInt32(Request["PaperID"]);
strPaperType=Convert.ToString(Request["PaperType"]);
dblCurTotalMark=Convert.ToDouble(Request["CurTotalMark"]);
if (!IsPostBack)
{
if (intPaperID!=0)
{
intOrder=Convert.ToInt32(ObjFun.GetValues("select count(*) as count from UserScore where PaperID="+intPaperID+" and ExamState=1 and TotalMark>"+dblCurTotalMark+"","count"))+1;
labOrder.Text="您在本次"+strPaperType+"中排名第"+intOrder.ToString()+"名!";
}
}
}
#endregion
后面还有 22 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
