ASP.NETʵÏÖÓû§µÚ¶þ´Î·ÃÎÊÍøÕ¾²»ÓÃÌá½»ÐÅÏ¢
ÔÚÎÒÃÇ·ÃÎÊһЩÍøÕ¾µÄʱºò»áÓÐÒ»¸ö¸´Ñ¡¿òÉÏÃæд×Å“Á½¸öÐÇÆÚÄÚ£¬²»ÔÙÒªÇóÊäÈëÃÜÂ딵ÄÀàËÆÄÚÈÝ£¬Èç¹û¹´Ñ¡ÉÏ£¬µÈÓû§Ï´εǼµÄʱºò¾Í¿ÉÒÔ²»ÓÃÔÙÊäÈëÃÜÂëÁË£¬Ö±µ½Á½¸öÐÇÆÚÒÔºó¡£½ñÌìС±à¾ÍºÍ´ó¼ÒÀ´ÊµÏÖÕâ¸ö¼¼Êõµã£ºµ±Óû§µÇ¼ʱ£¬Èç¹ûÑ¡ÖГÁ½¸öÐÇÆÚÄÚ£¬²»ÔÙÒªÇóÊäÈëÃÜÂ딸´Ñ¡¿ò£¬ÔòÔÚÁ½¸öÐÇÆÚÄÚ£¬µ±Óû§·ÃÎʸÃÍøÒ³µÄʱºò£¬²»ÓÃÔÙ´ÎÊäÈëÓû§ÃûÓëÃÜÂ룬¶øÊÇÖ±½Ó½øÈëÒѵǼ½çÃæ¡£
ʵÏָù¦ÄܵĹؼü¼¼ÊõÈçÏ£º
1. ÔÚ“µÇ¼½çÃ攓µÇ¼”°´Å¥µÄClickʼþÏ£¬Ê×ÏÈÅжÏCookies[“USerName”]ÊÇ·ñÒÑ´æÔÚ£¬Èç¹ûÒѾ´æÔÚ£¬ÔòÖ±½ÓÌøתµ½“ÒѵǼ½çÃ攡£Èç¹û²»´æÔÚ£¬ÔòÖ´Ðв½Öè2.
2. ÅжÏÓû§ÊÇ·ñΪºÏ·¨Óû§¡£Èç¹ûÊǺϷ¨Óû§£¬ÔòÖ´Ðв½Öè3£¬·ñÔòÖ´Ðв½Öè6¡£
3. Åжϸ´Ñ¡¿òÊÇ·ñ±»Ñ¡Ôñ¡£Èç¹ûÒѱ»Ñ¡Ôñ£¬ÔòÖ´Ðв½Öè4£¬·ñÔò£¬Ö´Ðв½Öè5¡£
4. ½«Óû§Ãû±£³Öµ½Cookie¶ÔÏóÖУ¬È»ºóÔÙÌøתµ½“ÒѵǼ½çÃ攡£
5. Ö±½ÓÌøתµ½“ÒѵǼ½çÃ攡£
6. ÌáʾÓû§“ÊäÈë³ö´í”¡£
ÏÂÃæ¾Í°Ñ³ÌÐòµÄÖ÷Òª´úÂë¸ø´ó¼Ò£¬Ïà¹Ø´úÂëÈçÏ£º
Public void btnLoad_Click(object sender,EventArgs e)
{
If(Request.Cookies[“UserName”]!=null)
{
Response.Redirect(“NavigatePage.aspx?UserName=”+Request.Cookie[“UserName”].Value);
}
Else
{
If(this.txtName.Text==”mr”&& this.txtPassword.Text==”mrsoft”)
{
If(CheckBox1.Checked==true)
{
Response.Cookies[“UserName”].Value=System.Web.HttpUtility.UrlEncode(txtName.Text);
Response.Cookies[“UserName”].Expires=DateTime.Now.AddDays(14);
}
Response.Redirect(“NavigatePage.aspx?UserName=”+System.Web.HttpUtility.UrlEncode(txtName.Text));
}
Else
{
Ïà¹ØÎĵµ£º
ËÄ¡¢ÈçºÎ£ºÖ¸¶¨ÊÇ·ñ½« ASP.NET Web ·þÎñÆ÷¿Ø¼þ·¢Ë͵½·þÎñÆ÷
ĬÈÏÇé¿öÏ£¬Óû§ÔÚ ASP.NET ÍøÒ³ÖÐÖ¸¶¨µÄÐÅÏ¢ºÍÑ¡Ôñ²»»áÁ¢¼´·¢Ë͵½·þÎñÆ÷¡£¶øÊÇÖ»ÔÚ·¢ËÍÕû¸öҳʱ·¢ËÍÖµ£¬²¢ÇÒͨ³£ÊÇÔÚÏìÓ¦°´Å¥µ¥»÷ʱ·¢Éú¡£µ«ÊÇ£¬Äú¿ÉÄܻᷢÏÖËüÔÚÏò·þÎñÆ÷Á¢¼´·¢ËÍÓû§¸ü¸Äʱ·Ç³£ÓÐÓá£
Á¢¼´½«¿Ø¼þÖµ·¢Ë͵½·þÎ ......
Áù¡¢ASP.NET Web ·þÎñÆ÷¿Ø¼þÖÐµÄ Tab ¼ü˳Ðò¡¢½¹µãºÍ·ÃÎʼü
ÈôÒªÔöÇ¿ÔÚ ASP.NET ÍøÒ³ÖÐʹÓÿؼþµÄÓû§ÌåÑ飬¿ÉÒÔÖ¸¶¨Óû§Í¨¹ý°´ Tab ¼üÏÔʾ ASP.NET Web ·þÎñÆ÷¿Ø¼þµÄ˳Ðò£¬²¢¿ÉÒÔÖ¸¶¨×î³õ´ò¿ªÒ³Ê±Ò³ÉϵÄÄĸö¿Ø¼þ¾ßÓн¹µã¡£
1¡¢Tab ¼ü˳Ðò
µ±ÔÚä¯ÀÀÆ÷ÖÐÏÔʾҳʱ£¬Óû§¿ÉÒÔʹÓà ......
¾Å¡¢ÒÔ±à³Ì·½Ê½Ìí¼Ó ASP.NET ¿Ø¼þ
ÓÐʱ£¬ÔÚÔËÐÐʱ´´½¨¿Ø¼þ±ÈÔÚÉè¼Æʱ´´½¨¿Ø¼þ¸ü¿ÉÐС£ÀýÈ磬¼Ù¶¨ÓÐÒ»¸öËÑË÷½á¹ûÒ³£¬ÄúÒªÔÚÆäÖн«ÒÔ±íµÄÐÎʽÏÔʾ½á¹û¡£ÓÉÓÚ²»ÖªµÀÒª·µ»Ø¶àÉÙÏÒò´ËÄúÐèҪÿ¸ö·µ»ØµÄÏ̬Éú³ÉÒ»¸ö±íÐС£
˵Ã÷£º ÏÖÓпؼþͨ³£¿ÉÒÔÌṩ´Ó¶¯ ......
Ò»¡¢¼òµ¥½éÉÜ
using System.Xml;
//³õʼ»¯Ò»¸öxmlʵÀý
XmlDocument xml=new XmlDocument();
//µ¼ÈëÖ¸¶¨xmlÎļþ
xml.Load(path);
xml.Load(HttpContext.Current.Server.MapPath("~/file/bookstore.xml"));
//Ö¸¶¨Ò»¸ö½Úµã
XmlNode root=xml.SelectSingleNode("/root" ......
´ËľÂíдÁËÒ»¶Îʱ¼äÁË,д³öÀ´¾õµÃ×Ô¼º¶Ô.netÓÐÁ˸ü¶àµÄÈÏʶ,µ±È»Ö÷ÒªÊÇѧϰµ½Á˺ܶà֪ʶ.ËùÒÔ¸öÈ˸оõѧϰ±à³Ì×îºÃµÄ;¾¶¾ÍÊÇ´ø×ÅÏîĿȥѧϰ,ÅäºÏ°Ù¶È,googleÈ¥½â¾öÎÊÌâ. ºÇºÇ ÅÅ°æ±È½Ï³óª,¹¦ÄÜʵÓþͺÃ. ºÃÁË,ÏÖÔÚ·¢²¼´ËľÂí
1.µÇ½½çÃæ:
2. Ö÷Ìå½çÃæ
3. ¸÷¹¦ÄÜÄ£¿é
°Ù¶ÈÏÂÔصØÖ·: http://www.baidu.com/s? ......