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

asp.net js css µÈ¿ª·¢ÖпÉÄÜ»áÓõ½µÄ ²»¶Ï¸üÐÂ


Ò»¡¢ÓÃJQueryµÄAjax¼ÓÔØXML²¢½âÎöµÄ×¢ÒâÊÂÏî
1¡¢Content-Type
   ºÜ¶àʱºòÎÞ·¨½âÎö¾ÍÊÇContent-TypeµÄÎÊÌâ¡£Èç¹û±¾Éí¾ÍÊÇXMLÎļþ£¬ÇëÌø¹ýÕâÒ»²½¡£
   ¶¯Ì¬Éú³ÉµÄXMLÒ»¶¨Òª½«ÆäÉèÖÃΪtext/xml£¬·ñÔòĬÈϾÍÊÇtext/htmlÒ²¾ÍÊÇÆÕͨµÄÎı¾¡£   ³£¼ûÓïÑÔµÄContent-TypeÉèÖãº
   response.setHeader("ContentType","text/xml");  //jsp
   response.ContentType= "text/xml"; //asp
   header("Content-Type:text/xml"); //php
2¡¢xml½á¹¹
   XMLÒ»¶¨Òª·â±ÕµÄ£¬ºÜÖØÒªµÄ£¡
<?xml version="1.0" encoding="UTF-8"?>
<stulist>
<student email="1">
<name>zhangsan</name>
<id>1</id>
</student>
<student email="2">
<name>lisi</name>
<id>2</id>
</student>
</stulist>
3¡¢½âÎö
$.ajax({
async: true, // ĬÈÏtrue(Òì²½ÇëÇó)
cache: true, // ĬÈÏtrue,ÉèÖÃΪ false ½«²»»á´Óä¯ÀÀÆ÷»º´æÖмÓÔØÇëÇóÐÅÏ¢¡£
type: "GET", // ĬÈÏ:GET ÇëÇó·½Ê½:[POST/GET]
dataType: "xml", //ĬÈÏ["xml"/"html"] ·µ»ØÊý¾ÝÀàÐÍ:["xml" / "html" / "script" / "json" / "jsonp"]
url: "HomePageData/FlashResRecommend.xml", // ĬÈϵ±Ç°µØÖ·,·¢ËÍÇëÇóµÄµØÖ·
error: function(xml) { alert('¼ÓÔØÊý¾Ý³öÏÖ´íÎó'); }, // ÇëÇóʧ°Üʱµ÷ÓÃ
timeout: 10000, // ÉèÖÃÇëÇó³¬Ê±Ê±¼ä
success: function(xml) { // ÇëÇó³É¹¦ºó»Øµ÷º¯Êý ²ÎÊý£º·þÎñÆ÷·µ»ØÊý¾Ý,Êý¾Ý¸ñʽ.
$(xml).find("student[email='1']").size();//¿ÉÒÔ»ñÈ¡ÊôÐÔΪ1µÄ¸öÊý
xml.documentElement.childNodes.length;//¿ÉÒÔ»ñÈ¡ÊôÐÔΪ1µÄ¸öÊý
$(xml).find("News[Status='1']").each(function(i) {
var Title = $(this).children("name").text(); //È¥¶ÔÏóµÄÎı¾
var email = $(this).attr("email");//È¡ÊôÐÔ
});
}
})£»

¸ü¶à¿ÉÒԲο¼ibmÎÄÕ£ºÊ¹Óà jQuery ÔÚä¯ÀÀÆ÷Öд¦Àí XML
http://www.ibm.com/developerworks/cn/xml/x-feedjquery/
¶þ¡¢Asp.netºǫ́°ó¶¨xml²¢½øÐзÖÒ³
<asp:Repeater ID="rptResType2" runat="server" >
<HeaderTemplate>
<div class="mycon


Ïà¹ØÎĵµ£º

asp.net Òì²½Ò³Ãæ

Ç°¼¸ÌìÎÒûÊÂÔÚͼÊé¹Ý½è±¾··ºÙºÙ£¬Í¦ÓÐÒâ˼µÄ£¬ÁíÍâÄÇÌìÔÚÌù°É¿´µ½µÄÒ»²ÅÅ®µÄÎÊÌâͻȻÏëµ½ÁË··¾Í¿´ÁË¿´£¬Í¦ÓÐÒâ˼µÄ¡£
¾ßÌå×ܽáµÄÄÚÈÝÎÒ½ñÌìд³öÀ´£¬¿ÏÄÜÓе㳤£¬µ«ÊǶÔÍøÕ¾¾ø¶ÔÓÐÓá£
  Ò³ÃæµÄ´¦ÀíĬÈÏÇé¿öÏ£¬´¦ÀíASP¡£NETÒ³ÃæµÄÄ£Ðͱ¾ÖÊÉÏÊÇͬ²½µÄ¡£Õâ˵Ã÷£¬Ò³ÃæµÄÁ÷³ÌÊǹ̶¨µÄ£¬Ã¿Ò ......

½â¾övs2005²»Äܵ÷ÊÔASP.NET³ÌÐò

Òì³£Ïêϸ£º
1. ´íÎóÁбíûÓмǼ£¬±àÒëͨ¹ý¡£
2. ÏÔʾÊä³ö:
“WebDev.WebServer.EXE”(ÍйÜ): ÒѼÓÔØ“C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll”£¬ÒÑÌø¹ý·ûºÅ¼ÓÔØ¡£ÒѶÔÄ£¿é½øÐÐÁËÓÅ»¯²¢ÆôÓÃÁ˵÷ÊÔÆ÷Ñ¡ÏöÎҵĴúÂ딡£
“WebDev.WebServer ......

ѧϰcssÖеÄժ¼

Á´½Ó·½·¨£º
     ÍⲿÁ´½ÓÑù±í£º<head><link rel="stylesheet"  type="text/css" href="*.css"></head>
     ÄÚ²¿µÄ£º1:<head><style type="text/css">  example css </style></head>
     &nbs ......

CSSÃüÃû¹æ·¶

CSSÃüÃû¹æ·¶
ҳͷ£ºheader
µÇ¼Ìõ£ºloginbar
±êÖ¾£ºlogo
²àÀ¸£ºsidebar
¹ã¸æ£ºbanner
µ¼º½£ºnav
×Óµ¼º½£ºsubnav
²Ëµ¥£ºmenu
×Ӳ˵¥£ºsubmenu
ËÑË÷£ºsearch
¹ö¶¯£ºscroll
Ò³ÃæÖ÷Ì壺main
ÄÚÈÝ£ºcontent
±êÇ©Ò³£ºtab
ÎÄÕÂÁÐ±í£ºlist
ÌáʾÐÅÏ¢£ºmsg
С¼¼ÇÉ£ºtips
À¸Ä¿±êÌ⣺title
¼ÓÈ룺joinus
Ö¸ÄÏ£ºguil ......

ASP.NETµ¯³öÈ·ÈÏ´°¿Ú

ÔÚASP.NET 1.1ÖУ¬Òª×ö1¸öµ¯³öµÄÈ·È϶Ի°¿òµÄ»°£¬Ò»°ãÊÇÔÚ·þÎñ¶ËµÄ´úÂëÖÐÕâÑùд£º
private void Page_Load(object sender, System.EventArgs e)
{
    btnClick.Attributes.Add("onclick", "return confirm('Are you sure?');");
    // Button1.Attributes["OnClick"] = "return conf ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ