asp.netÖеÄsessionÎÊÌâ - .NET¼¼Êõ / ASP.NET
ÈçºÎÓÃsessionÀ´¿ØÖÆÒ»¸öÍøÕ¾µÄµÇ¼£¿
µ±´ËÓû§Ã»ÓеǼ¾Í²»¿ÉÒÔͨ¹ý±ðµÄµ¼º½½øÈëÁË£¬Èç¹ûËûÔÚ²»µÇ¼µÄÇé¿öϵã»÷ÄÇЩÁ´½Ó£¬¾Í»áÌøµ½ÄǸöµÇÂ¼Ò³ÃæÈÃÓû§µÇ¼£¬»òÕß³öÏÖÒ»¸ö¶Ô»°¿ò£¬ÌáʾÓû§ÐèÒªµÇ¼²Å¿ÉÒÔ½øÈë¡£¡£¡£
ÓÃSessionÀ´´æ´¢Óû§ID£¬ÔÚÿ¸öÒ³ÃæµÄPage_LoadÖÐÅжÏSession["ID"]ÊÇ·ñΪnull,ΪnullÔòûÓеǼ£¬¾ÍÒªResponse.Redirectµ½µÇÂ½Ò³Ãæ
public class BasePage : System.Web.UI.Page
{
public BasePage()
{
}
protected override void OnInit(EventArgs O)
{
if (base.Session["UserId"] == null || base.Session["UserId"].ToString().Equals(""))
{
Response.Redirect("~/Error.aspx");
}
}
}
public partial class Error : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Write(" <script>top.location.href='login.aspx'; </script>");
}
}
ѧϰ°¡~~~~~```
´´½¨Ò»¸öÀà Ò³Ãæ¼Ì³Ð¸ÃÀà
ÏñÈçÃδó¸çÄÇÑù¡£
Ò²¿ÉÒÔÔÚÅäÖÃÎļþÉèÖà ²»ÔÊÐíÄäÃû·ÃÎÊ
ÈçºÎÕâÑùÅäÖà ÅäÖÃÎļþÉèÖà ²»ÔÊÐíÄäÃû·ÃÎÊ
Ïà¹ØÎÊ´ð£º
function CheckOpwd(){//ÑéÖ¤Óû§Ãû
var pwd=document.all.txtOpwd;
var div1=document.getElementById("divPwd");
if (pwd.value=="")
{
......
±¾È˹¤×÷¾ÑéÒ»ÄêÒÔÉÏ
ÊìϤasp.net
ÊìϤjavascript
ÊìϤCss
ÊìϤajax
ÊìϤsqlserver2005
ÓÐÒ»ÄêµÄÏîÄ¿¾Ñé
¾ßÌåÏîÄ¿ºÍÆäËûµÄ¾Í²»ÔÚÕâдÁË
ÓÐÒâÕßÁªÏµ£º
QQ:359233910
ÒýÓÃ
±¾È˹¤×÷¾ÑéÒ»ÄêÒÔÉÏ
ÊìϤasp ......
ÎÒÓÃ.net¿ª·¢wapÍøÕ¾
1£¬ÎÒ´Ó¹¤¾ßÏäÀïÍÏÁËÁ½¸ölink£¬ÕâÁ½¸ölink»áÏÔʾÔÚÁ½ÐУ¬Èç¹ûÈÃÕâÁ½¸ölink´¦ÓÚͬһÐС£
2£¬ÈçºÎÏÔʾÁ½¸ö¿Ø¼þÖ®¼äµÄ¿Õ¸ñÎÊÌâ¡£
¸úwapÓйØÂ𣿲»Ì«Ã÷°×
ÓÑÇé°ï¶¥¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£
¾Í ......
¹ØÓÚÍøÕ¾°²È«µÄÎÊÌ⣡
ÎÒÁ˽⵽µÄÍøÕ¾°²È«ÎÊÌâ°üÀ¨£º
sql×¢Èë©¶´ºÍ±©¿â©¶´»¹ÓÐÉÏ´«Â©¶´
³ýÁËÕâЩ»¹ÓÐÆäËûµÄ©¶´Ã´£¿
×¢Èë©¶´¿ÉÒÔͨ¹ý¹ýÂËÀ´·ÀÖ¹
±©¿â©¶´Ôõô·ÀÖ¹
»¹ÓÐÈËÉÏ´«µÄľÂíÊÇ.gif
ÕâÖÖ©¶´Ôõôȥ± ......
asp ·Ò³ÔõôʵÏÖ£¿
·ÖÒ³¿ÉʹÓ÷ÖÒ³¿Ø¼þÈçaspnetpager
ûÕÒµ½´Ë¿Ø¼þ£¡£¡£¡£¡£¡
µÚÈý·½×é¼þ ÐèÒªÔÚÍøÉÏÈ¥ÏÂÔØ http://www.webdiyer.com/Controls/AspNetPager/Downloads
²»Óÿؼþ Ôõô×ö°¡£¡
hehe
²» ......