asp.net ³ÌÐò×Ô¶¯Ìá½»µÇ½±íµ¥²¢±£³ÖSession¼°Cookie
1¡¢Í¨¹ý¸½¼ÓÒ»¸öcookiecontainerµ½httprequest¶ÔÏóÖУ¬¿ÉÒԵõ½µÇ¼ºó·µ»ØµÄ´ú±íSESSION IDµÄCOOKIE¡£
2¡¢½«´ËCOOKIE°üº¬ÔÚÒ»¸öcookiecontainerÖв¢¸½¼Óµ½ÁíÒ»¸öHTTPREQUESTÇëÇóÖУ¬Ôò¿ÉÒÔʵÏÖSESSIONµÄ»¹Ô¡£
²¿·ÖÖ÷Òª´úÂ룺
CookieContainer cookieContainer = new CookieContainer();
///////////////////////////////////////////////////
//
1. ´ò¿ª Login.aspx Ò³Ãæ£¬»ñµÃ VeiwState & EventValidation¡£
//
Èç¹ûÊǵǽҳΪasp.netÒ³Ãæ,ÐèÒª»ñÈ¡VeiwState¼°EventValidation
///////////////////////////////////////////////////
//
ÉèÖôò¿ªÒ³ÃæµÄ²ÎÊý
string
URI
=
http://localhost/Test/Login.aspx
;
HttpWebRequest request
=
WebRequest.Create(URI)
as
HttpWebRequest;
request.Method
=
"
GET
"
;
request.KeepAlive
=
false
;
//
½ÓÊÕ·µ»ØµÄÒ³Ãæ
HttpWebResponse response
=
request.GetResponse()
as
HttpWebResponse;
System.IO.Stream responseStream
=
response.GetResponseStream();
System.IO.StreamReader reader
=
new
System.IO.StreamReader(responseStream,Encoding.UTF8);
&nb
Ïà¹ØÎĵµ£º
ǰ̨Éè¼ÆÒ³Ãæ.aspx
<body>
<form id="form1" runat="server">
<div>
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" />
</div>
  ......
ÕâÁ½ÌìÒòΪҪ×öÒ»¸ö¿ÉÒÔÊÕ¼¯Óû§Ìá½»ÐÅÏ¢£¬È»ºó·¢ËÍÓʼþµ½Ö¸¶¨ÓÊÏäµÄÍøÒ³¡£ÔÚ asp.net 2.0 ÀïÃæ·¢ËÍÓʼþ¿ÉÒÔʹÓà System.Net.Mail ÏÂÃæµÄÀà¡£http://www.systemnetmail.com/faq/2.1.aspx Õâ¸öµØÖ·ÓÐ System.Net.Mail µÄ×÷ÕßдµÄ·Â·ðÊÇ MSDN ÀàËÆµÄ Faq£¬¿´´úÂëµÄʱºò¿ÉÒԲο¼ÒÔÏ¡£Ê²Ã´¶¼²»ËµÁË£¬ÏÂÃæÌù³öÀ´´úÂë°É£¬±Ï¾¹´ú ......
protected void Button6_Click(object sender, EventArgs e)
{
this.Label11.Text = HtmlEncode(this.TextBox3.Text);
}
protected static string HtmlEn ......
OCIEnvNlsCreate ʧ°Ü£¬·µ»Ø´úÂëΪ -1£¬µ«´íÎóÏûÏ¢Îı¾²»¿ÉÓá£
2009-09-20 02:10
“System.Data.OracleClient ÐèÒª Oracle ¿Í»§¶ËÈí¼þ 8.1.7 »ò¸ü¸ß°æ±¾ ”
µÄ´¦Àí·½·¨Ó¦¸ÃÏàËÆ£¬Ã»¾ßÌåÊÔ¹ý¡£
¸øoracle/ora92µÄĿ¼¼ÓÉÏnetwork serviceÓû§µÄȨÏ޾ͿÉÒÔÁË¡£
·½·¨£ºÓÒ»÷ora92£¬Ñ¡ÔñÊôÐÔ£¬µã»÷“°²È«&rd ......