?? generalex.aspx.cs
字號:
?using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Student_GeneralEx_GeneralEx : System.Web.UI.Page
{
string Sname="";
protected void Page_Load(object sender, EventArgs e)
{
if (Session["USERSTYLE"] == "STUDENT")
{
Sname = Session["USERNAME"].ToString();
}
else
{
Dialog("對不起,你沒有權限訪問這個頁面!");
Response.Redirect("~/SystemManage/Login.aspx");
}
}
private void Dialog(String Str)
{
Response.Write(@"<script type='text/JavaScript'>");
Response.Write(@"alert('" + Str + "');");
//Response.Write(@"window.location='./list_logingroup.aspx';");
Response.Write(@"</script>");
}
protected void BtnGeneralEx_Click(object sender, EventArgs e)
{
String strHard = GeneralText.Text;
if(GeneralText.Text.Equals(""))
return;
String sParam = "?strHard=" + strHard;
sParam += "&Sname=" + Sname;
Response.Redirect("~/Student/GeneralEx/Exercise.aspx" + sParam);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -