Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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

Îå¡¢ASP.NET Web ·þÎñÆ÷¿Ø¼þºÍä¯ÀÀÆ÷¹¦ÄÜ
      ²»Í¬µÄä¯ÀÀÆ÷ºÍÏàͬä¯ÀÀÆ÷µÄ²»Í¬°æ±¾Ö§³Ö²»Í¬µÄ¹¦ÄÜ¡£ASP.NET ·þÎñÆ÷¿Ø¼þ»á×Ô¶¯È·¶¨·¢³öÒ³ÃæÇëÇóµÄä¯ÀÀÆ÷£¬²¢Îª¸Ãä¯ÀÀÆ÷³ÊÏÖÊʵ±µÄ±ê¼Ç¡£µ«ÊÇ£¬²¿·Ö¿Ø¼þ¹¦ÄÜÎÞ·¨ÔڽϵͰ汾µÄä¯ÀÀÆ÷ÉϳÊÏÖ£¬Òò´ËÐèÒªÔÚ¾¡¿ÉÄܶàµÄä¯ÀÀÆ÷ÀàÐÍÉϲ鿴ҳµÄÊä³ö£¬ÒÔÈ·±£Ò ......

ASP.NET

¾Å¡¢ÒÔ±à³Ì·½Ê½Ìí¼Ó ASP.NET ¿Ø¼þ
      ÓÐʱ£¬ÔÚÔËÐÐʱ´´½¨¿Ø¼þ±ÈÔÚÉè¼Æʱ´´½¨¿Ø¼þ¸ü¿ÉÐС£ÀýÈ磬¼Ù¶¨ÓÐÒ»¸öËÑË÷½á¹ûÒ³£¬ÄúÒªÔÚÆäÖн«ÒÔ±íµÄÐÎʽÏÔʾ½á¹û¡£ÓÉÓÚ²»ÖªµÀÒª·µ»Ø¶àÉÙÏÒò´ËÄúÐèҪÿ¸ö·µ»ØµÄÏ̬Éú³ÉÒ»¸ö±íÐС£
      ˵Ã÷£º ÏÖÓпؼþͨ³£¿ÉÒÔÌṩ´Ó¶¯ ......

ASP.NETÏÂÔØÎļþ´úÂë

 ÈçºÎͨ¹ýASP.NETÀ´ÏÂÔØÎļþ£¬Õâ¸öÎÊÌâÎÒÃǾ­³£Óöµ½£¬°Ñ³£Óõķ½·¨×ܽᵽһÆð£¬Ñ§Ï°Ñ§Ï°¡£µ±ÎÒÃÇÒªÈÃÓû§ÏÂÔØÒ»¸öÎļþ£¬×î¼òµ¥µÄ·½Ê½ÊÇͨ¹ýResponse.RedirectÖ¸Á
Response.Redirect("test.doc")
Äú¿ÉÒÔ°ÑÉÏÃæÕâÐÐÖ¸Áî·ÅÔÚButtonµÄClickʼþµ±ÖУ¬µ±Óû§µã»÷°´Å¥Ö®ºó£¬ÍøÒ³¾Í»á±»×ªÖ·µ½¸Ãwordµµ£¬Ôì³ÉÏÂÔصÄЧ¹û¡ ......

asp.net²Ù×÷XMLС½á

 

Ò»¡¢¼òµ¥½éÉÜ
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" ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ