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

asp.net ²Ù×÷xml

asp.net ¶ÔxmlÎļþµÄ¶Áд,Ìí¼Ó,ÐÞ¸Ä,ɾ³ý²Ù×÷
ÏÂÃæÓдúÂëµ÷ÊÔÕýÈ·
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Xml;
private XmlDocument xmlDoc;
        //load xml file
        private void LoadXml()
        {
            xmlDoc=new XmlDocument();
            xmlDoc.Load(Server.MapPath("User.xml"));
        }
        //Ìí¼Ó½Úµã
        private void AddElement()
        {
            
            LoadXml();
            XmlNode xmldocSelect=xmlDoc.SelectSingleNode("user");
            
            XmlElement el=xmlDoc.CreateElement("person"); //Ìí¼Óperson½Úµã
            el.SetAttribute("name","·çÔÆ"); //Ìí¼Óperson½ÚµãµÄÊôÐÔ"name"
            el.SetAttribute("sex","Å®");   //Ìí¼Óperson½ÚµãµÄÊôÐÔ "sex"
            el.SetAttribute("ag


Ïà¹ØÎĵµ£º

asp.net×¢²áJavascriptµÄ·½·¨

1¡¢IsStartupScriptRegistered£º¶ÔÏóÊÇ·ñ×¢²áÁËÆôÓýű¾¡£
2¡¢IsClientScriptBlockRegistered£º¶ÔÏóÊÇ·ñ×¢²áÁË¿Í»§¶Ë½Å±¾¿é¡£
3¡¢IsClientScriptIncludeRegistered£º¶ÔÏóÊÇ·ñ×¢²áÁË¿Í»§¶Ë½Å±¾°üº¬¡£
µÚÒ»¸öÀý×Ó£º
string info = "<script>alert('ÄãºÃÂð£¿');</script>";
//ÅжÏʼþÊÇ·ñ±»×¢²á£¬Ð´ÈëÇ ......

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

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

ASP.NETÖÐString.IndexOf ·½·¨µÄʹÓÃ

String.IndexOf ·½·¨ (value, [startIndex], [count])
¡¡¡¡±¨¸æÖ¸¶¨×Ö·ûÔÚ´ËʵÀýÖеĵÚÒ»¸öÆ¥ÅäÏîµÄË÷Òý¡£ËÑË÷´ÓÖ¸¶¨×Ö·ûλÖÿªÊ¼£¬²¢¼ì²éÖ¸¶¨ÊýÁ¿µÄ×Ö·ûλÖá£
¡¡¡¡²ÎÊý
¡¡¡¡value
¡¡¡¡Òª²éÕÒµÄ Unicode ×Ö·û¡£ ¶Ô value µÄËÑË÷Çø·Ö´óСд¡£
¡¡¡¡startIndex£¨Int32£©
¡¡¡¡¿ÉÑ¡ÏËÑË÷ÆðʼλÖᣲ»ÉèÖÃÔò´Ó0¿ªÊ¼¡£
......

C#(asp.net)ʵÏÖĿ¼(ÎÞÀ©Õ¹Ãû)ÖØд

ÔÚ2003ϵͳÏÂ,°´ÕÕÔÚIIS6ÖÐÍøÕ¾ÓÒ¼üÊôÐÔ£­Ö÷Ŀ¼£­ÅäÖã­ÔÚͨÅä·ûÓ¦ÓóÌÐòÓ³É䣭²åÈëÉèÖÃÌí¼ÓͳÅä·û,¿ÉÖ´ÐÐÎļþÑ¡ÔñC:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll¡¡×¢Òâ“È·ÈÏÎļþÊÇ·ñ´æÔÚ”Õâ¸öÑ¡ÏҪѡÉÏ
2 Õ¾µãÖÐÒýÈëUrlRewrting.dll
3 Web.configÅäÖÃÐÞ¸ÄÈçÏ£º
<RewriterConfig& ......

ASP.NET³£ÓõÄÀà

ϵͳÀà
¡¡¡¡TypeÀ࣬ObjectÀ࣬StringÀ࣬ ArrayÀ࣬ConsoleÀ࣬ ExceptionÀ࣬GCÀ࣬ MarshalByRefObjectÀ࣬ MathÀà¡£
¡¡¡¡DateTime½á¹¹£¬Guid ½á¹¹£¬
¡¡¡¡ICloneable½Ó¿Ú£¬IComparable½Ó¿Ú£¬IConvertible½Ó¿Ú£¬ IDisposableÀ࣬
¡¡¡¡¼¯ºÏÀà
¡¡¡¡ICollection½Ó¿Ú£¬IComparer½Ó¿Ú£¬IDictionary½Ó¿Ú¡£IDictionaryEnume ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ