Home > Web Front-end > JS Tutorial > js solves pop-up window problem and implements class jump DIV example_javascript skills

js solves pop-up window problem and implements class jump DIV example_javascript skills

WBOY
Release: 2016-05-16 17:05:19
Original
999 people have browsed it

1、js代码如下:

复制代码 代码如下:

<%--实现班级跳转DIV--%>




2、cs文件代码:
复制代码 代码如下:

public DataTable dtPTC = new DataTable();//保存项目 项目分期 班级信息
public DataTable dtProjectInfo = new DataTable();//保存项目信息

protected void Page_Load(object sender, EventArgs e)
{
//原框架top页面信息开始
//User.isSessionInvalid();
clsCurrentUser user = mm.GetSession();
USER_ID = int.Parse(user.UserID);

if (Request.QueryString["ClassID"] != null)
{
Session["ClASSID"] = Request.QueryString["ClassID"].ToString();
classid=Session["ClASSID"].ToString();
getClassInfo();
}
else
{
classid = Session["CLASSID"].ToString();
getClassInfo();
}
//username = user.GetRealName();
username = user.UserRealName;
time = DateTime.Now.ToString("yyyy年MM月dd日", DateTimeFormatInfo.InvariantInfo);
//classInfo = getClassInfo(classid);
//DtPD = dba.SelectT_LEARNING_PROJECT(Convert.ToInt32(Session["PROJECT_ID"].ToString().Trim()));
//homepage = DtPD.Rows[0]["HOMEPAGE"].ToString().Trim();
//原框架top页面信息结束

//获取当前用记在本班中的权限。
string sqlRole = "select Ctype from T_PUB_USER_CLASS where ClASSID=" Session["CLASSID"].ToString() " and USERID=" mm.UserID;
DataTable dtRole = bdb.RunQuery(sqlRole);
if (dtRole.Rows.Count > 0)
{
role = dtRole.Rows[0]["Ctype"].ToString();
}

getALLInfo(); //根据用户ID分别获取项目、项目分期、班级信息

getProjectInfo();//根据用户ID分别获取项目

}
///
/// 根据用户ID分别获取项目、项目分期、班级信息
///

protected void getALLInfo()
{

int UserID = Convert.ToInt32(mm.GetSession().UserID);
string procName = "HZX_SelectCLASS_ByUserID";
SqlParameter[] sp = new SqlParameter[] { new SqlParameter("@USER_ID", UserID) };
try
{
dtPTC = bdb.RunProcQuery(procName, sp);
}
catch (Exception ee)
{
Response.Redirect("../../../ErrorPage.aspx");
}

}
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template