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

asp.netÖÐÈçºÎ±éÀúHashTable

asp.net±éÀúHashTableÐèÒªÓõ½DictionaryEntry Object£¬asp.net±éÀúHashTable£¬¿ÉÒÔͨ¹ýÈçÏÂÁ½ÖÖ·½·¨À´ÊµÏÖ£¬
·½·¨Ò»£º
foreach (System.Collections.DictionaryEntry objDE in objHasTab)
{
    Console.WriteLine(objDE.Key.ToString());
    Console.WriteLine(objDE.Value.ToString());
}
·½·¨¶þ£º
System.Collections.IDictionaryEnumerator enumerator = objHashTablet.GetEnumerator();
while (enumerator.MoveNext())
{
    Console.WriteLine(enumerator.Key);         // Hashtable¹Ø½¡×Ö
    Console.WriteLine(enumerator.Value);      // HashtableÖµ
}
¹þÏ£±íµÄ¼òµ¥²Ù×÷
ÔÚ¹þÏ£±íÖÐÌí¼ÓÒ»¸ökeyvalue¼üÖµ¶Ô£ºHashtableObject.Add(key,value);
ÔÚ¹þÏ£±íÖÐÈ¥³ýij¸ökeyvalue¼üÖµ¶Ô£ºHashtableObject.Remove(key);
´Ó¹þÏ£±íÖÐÒƳýËùÓÐÔªËØ£º           HashtableObject.Clear(); 
ÅжϹþÏ£±íÊÇ·ñ°üº¬Ìض¨¼ükey£º      HashtableObject.Contains(key);
ÏÂÃæ¿ØÖÆ̨³ÌÐò½«°üº¬ÒÔÉÏËùÓвÙ×÷£º
using System;
using System.Collections; fileʹÓÃHashtableʱ£¬±ØÐëÒýÈëÕâ¸öÃüÃû¿Õ¼ä
class hashtable
{
  public static void Main()
  {
  Hashtable ht=new Hashtable(); file´´½¨Ò»¸öHashtableʵÀý
  ht.Add(E,e);Ìí¼Ókeyvalue¼üÖµ¶Ô
  ht.Add(A,a);
  ht.Add(C,c);
  ht.Add(B,b);
  string s=(string)ht[A];
  if(ht.Contains(E)) fileÅжϹþÏ£±íÊÇ·ñ°üº¬Ìض¨¼ü,Æä·µ»ØֵΪtrue»òfalse
    Console.WriteLine(the E keyexist);
  ht.Remove(C);ÒƳýÒ»¸ökeyvalue¼üÖµ¶Ô
  Console.WriteLine(ht[A]);´Ë´¦Êä³öa
  ht.Clear();ÒƳýËùÓÐÔªËØ
  Console.WriteLine(ht[A]); file´Ë´¦½«²»»áÓÐÈκÎÊä³ö
  }
}


Ïà¹ØÎĵµ£º

ASP.NETÅäÖÃÎļþWeb.config Ïêϸ½âÊÍ

Ò»¡¢ÈÏʶWeb.configÎļþ
Web.configÎļþÊÇÒ»¸öXMLÎı¾Îļþ£¬ËüÓÃÀ´´¢´æ ASP.NET Web Ó¦ÓóÌÐòµÄÅäÖÃÐÅÏ¢£¨Èç×î³£ÓõÄÉèÖÃASP.NET Web Ó¦ÓóÌÐòµÄÉí·ÝÑéÖ¤·½Ê½£©£¬Ëü¿ÉÒÔ³öÏÖÔÚÓ¦ÓóÌÐòµÄÿһ¸öĿ¼ÖС£µ±Äãͨ¹ýVB.NETн¨Ò»¸öWebÓ¦ÓóÌÐòºó£¬Ä¬ÈÏÇé¿öÏ»áÔÚ¸ùĿ¼×Ô¶¯´´½¨Ò»¸öĬÈϵÄWeb.configÎļþ£¬°üÀ¨Ä¬ÈϵÄÅäÖÃÉèÖã¬Ë ......

ASP.NET(C#)³£ÓôúÂë30Àý

1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
¡¡¡¡´«ËͲÎÊý£º
response.write("£¼script£¾window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)£¼/script£¾")
¡¡¡¡½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString( ......

ASP.NET ÑéÖ¤Âë´´½¨¼°Ë¢ÐÂ

ÑéÖ¤ÂëÒ³Ãæºǫ́Code.aspx.cs´úÂ룺£¨ÒѾ­½«ÑéÖ¤Âë´æÓÚsessionÖÐsession["code"]£¬¿ÉÔÚµ÷ÓÃÒ³ÃæÖ±½Ó¶ÁÈ¡session£©
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebCon ......

ASP.NETµ×²ãµÄ³õ²½ÈÏʶÓëÀí½â

      ×î½üÔÚ¹úÍâµÄÍøÕ¾ÂÒ×ßһͨ£¬·¢ÏÖһЩ±È½ÏºÃµÄÎÄÕ£¬ÊÕ¼¯ÕûÀí¼ÓÓÚ×Ô¼ºµÄÀí½â£¬×÷Ϊ±Ê¼ÇÐÎʽ¼Ç¼ÏÂÀ´£¬ÈÃÒÔºó×Ô¼ºÓиö»ØÒä¡£
¡¡¡¡ASP.NETÊÇÒ»¸ö·Ç³£Ç¿´óµÄ¹¹½¨WebÓ¦ÓõÄƽ̨,ËüÌṩÁ˼«´óµÄÁé»îÐÔºÍÄÜÁ¦ÒÔÖÂÓÚ¿ÉÒÔÓÃËüÀ´¹¹½¨ËùÓÐÀàÐ͵ÄWebÓ¦ÓÃ.¾ø´ó¶àÊýµÄÈËÖ»ÊìϤ¸ß²ãµÄ¿ò¼ÜÈçWebFormsºÍWebS ......

ÔÚwinxpÖв¿Êðasp.net mvc

ÎÒÃÇÔÚÊ״β¿ÊðmvcµÄÏîĿʱͨ³£»áÓöµ½Ò»µãÎÊÌâ¡£M$ÒѾ­ÔÚGlobal.asax.csÎļþÖаüº¬ÁËÕâÁ½¾ä×¢Ê͵ÄÌáʾ¡£
    // Note: For instructions on enabling IIS6 or IIS7 classic mode,
    // visit http://go.microsoft.com/?LinkId=9394801
µ«ÊÇÎÒÃÇ·ÃÎÊÕâ¸öÍøÖ·¿´µ½ÉÏÃæµÄÎÄÕ¶Ôiis5.1(win ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ