Asp.Net·ÀֹˢÐÂÖظ´Ìá½»Êý¾Ý
ÔÚ×öÏîÄ¿µÄʱºòÓöµ½ÕâÑùµÄÎÊÌ⣬ÍøÉÏÕÒÁËÏ£¬¾õµÃ»¹¿ÉÒÔ£¬·ÖÏí¸ø´ó¼Ò
1Â¥
Asp.Net·ÀֹˢÐÂÖظ´Ìá½»Êý¾ÝС¼Ç
×î½üÔÚÓÃAsp.Net±àдµã¶«Î÷ʱÓöµ½¸öÎÊÌ⣺¼´Óû§ÔÚÌá½»±íµ¥ºó°´Ë¢Ð¾ͻáÖظ´Ìá½»Êý¾Ý£¬¼´ËùνµÄ“Ë¢ÐÂÖظ´Ìá½»”µÄÎÊÌâ¡£ÔÚÍøÉÏËÑ Ò»Ï£¬¿ÉÒÔÕÒµ½ºÜ¶à¹ØÓÚÕâ·½ÃæµÄ×ÊÁÏ£¬ÆäÖÐÓÐһƪÊÇÀ´×ÔMSDNÉϵÄÒ»ÖÖ½â¾ö·½·¨£º http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/BedrockASPNET.asp
ËüÊÇͨ¹ýÖØж¨Òå System.Web.UI.Page ÀàÀ´ÊµÏÖ¼ÓÔØÒ³Ãæʱ£¬ÊǓˢД¡¢“ºóÍË”ÇëÇ󣬻¹ÊÇÕý³£ÇëÇó£¬ÆäËûµÄÒ³ÃæÔò¼Ì³ÐÁË×Ô¶¨ÒåµÄÕâ ¸öPageÀà¡£¸Ð¾õËûÕâ¸ö·½·¨±È½Ï¶ÀÌØ£¬ÓÐÀý×Ó¿ÉÒÔÏÂÔØ£¬ÓÐÐËȤµÄ¿ÉÒÔÑо¿Ñо¿¡£
ÍøÉÏ×î¶àµÄ½â¾ö´ËÀàÎÊÌâµÄ·½·¨¾ÍÊDz»±£´æ»º´æ£¬¼´Ìá½»ºó±íµ¥ÉϵÄÊý¾Ý²»»á±»ä¯ÀÀÆ÷µÄ»º´æ±£´æ£¬Èç¹û´ËʱÔÙÓöµ½Ë¢Ð»òÕߺóÍËÇëÇóʱ£¬ ¾Í»áÏÔʾ“ÍøÒ³ÒѹýÆÚ”£¬Êý¾ÝÒ²¾Í²»»áÖظ´Ìá½»ÁË£¬Õâ¾ÍÆðµ½ÁË×èֹˢÐÂÖظ´Ìá½»µÄЧ¹û¡£
ÏÂÃæÒÔ¼òµ¥µÄÌύһƪÌû×ÓΪÀý£¬½éÉܽûÓûº´æ·ÀֹˢÐÂÖظ´Ìá½»µÄ·½·¨£¬±íµ¥Êý¾Ý°üÀ¨“±êÌ┺͓ÕýÎÄ”Á½¸ö²¿·Ö¡£
ÒÔÏÂÊǸ÷½·¨µÄ´úÂë(post.aspx)£º
//Ò³Ãæ¼ÓÔØ
protected void Page_Load(object sender, EventArgs e)
{
//¿ÉÒÔÔÚÒ³Ãæ¼ÓÔØʱÉèÖÃÒ³ÃæµÄ»º´æΪ“SetNoStore()”£¬¼´ÎÞ»º´æ
Response.Cache.SetNoStore();
//SessionÖд洢µÄ±äÁ¿“IsSubmit”ÊDZê¼ÇÊÇ·ñÌá½»³É¹¦µÄ
if ((bool)Session["IsSubmit"])
{
//Èç¹û±íµ¥Êý¾ÝÌá½»³É¹¦£¬¾ÍÉè“Session["IsSubmit"]”Ϊfalse
Session["IsSubmit"] = false;
//ÏÔʾÌá½»³É¹¦ÐÅÏ¢
ShowMsg.Text = " * Ìá½»³É¹¦!";
}
else
//·ñÔòµÄ»°£¨Ã»ÓÐÌá½
Ïà¹ØÎĵµ£º
À§ÈÅÁË2ÌìµÄasp.netÖÐÎÄÂÒÂëÖÕÓÚ½â¾öÁË¡£Ê×ÏÈ£¬ÎÒÃèÊöһϴó¸ÅµÄÇé¿ö£º
ÎÒÒѾÔÚÐéÄâÖ÷»úÉÏÔËÐÐÁËÒ»¶Îʱ¼äµÄÍøÕ¾£¨Äܹ»ÏÔʾÖÐÎÄ£¬ÎÞÂÒÂ룬ÎÞÖÐÎıàÂëÅäÖã©£¬ÔÚÒ»´Îµ÷ÊÔ¹ýºó£¬Í»È»±ä³ÉÁËÂÒÂ룬¶øÇÒÎÞÂÛÎÒÔõôÉèÖã¬×ÜÊÇÂÒÂ룬¶øÇÒÿ´Î¶¼ÊDz»Í¬¸ñʽµÄÂÒÂ룬ÓСõµÄ£¬ÓÐÈ«ÊÇ£¿µÄ£¬Ò²ÓÐ ......
ÏÈÉý¼¶ieµ½5.5°æÒÔÉÏ
1 ÏÂÔØÖÐÎÄ°æIE6:http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/CN/ie6setup.exe
2 ÏÂÔØmdac°²×° Ö±½ÓÏÂÔØ2.8ÖÐÎÄ°æ:http://download.microsoft.com/download/8/b/6/8b6198c0-fe96-4811-9d81-
d5c76dd5fea8/MDAC_TYP.EXE
3 È»ºóÏÂÔØ.NET Framework 1.1°æ¿ÉÔ ......
public static string GetCustomerCName(ref ArrayList arrayCName,ref ArrayList arrayID)
{
SqlConnection con=ADConnection.createConnection();
  ......
ÔÎĵØÖ·£ºhttp://www.17aspx.com/html/aspnet/all/2010/0106/485.html
1.Ö÷ÒªÃüÃû¿Õ¼ä:
<% @ Import Namespace="System.Data" %> ´¦ÀíÊý¾ÝʱÓõ½
<% @ Import Namespace="System.Data.ADO" % > ʹÓÃADO.net ʱÓõ½
<% @ Import Namespace="System.Da ......
¹ØÓÚÒ³Ãæ´«ÖµµÄ·½·¨£¬Òý·¢Á˺ܶàÌÖÂÛ¡£¿´À´ÓкܶàÈ˹Ø×¢Õâ¸ö£¬ÎÒ¾ÍÎÒ¸öÈ˹۵ã×öÁËЩ×ܽᣬϣÍû¶Ô´ó¼ÒÓÐËù°ïÖú¡£
1. ʹÓÃQueryString±äÁ¿
QueryStringÊÇÒ»Öַdz£¼òµ¥µÄ´«Öµ·½Ê½£¬Ëû¿ÉÒÔ½«´«Ë͵ÄÖµÏÔʾÔÚä¯ÀÀÆ÷µÄµØÖ·À¸ÖС£Èç¹ûÊÇ´«µÝÒ»¸ö»ò¶à¸ö°²È«ÐÔÒªÇ󲻸߻òÊǽṹ¼òµ¥µÄÊýֵʱ£¬¿ÉÒÔʹÓÃÕâ¸ö·½·¨¡£µ«ÊǶÔÓÚ´« ......