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

asp.netÖÐʹÓÃjsonÇ°ºǫ́´«Öµ

ʹÓÃinput¿Ø¼þonclick´«µÝjson±È½Ï¼òµ¥£¬
ʹÓÃasp:Button ·þÎñÆ÷¿Ø¼þonclick»á»Ø·¢Ë¢ÐÂÒ³ÃæʹjsonµÄÖµ¶ªÊ§¡£
ÔÚHandler1.ashxÖÐʹÓþ²Ì¬±äÁ¿´æ´¢µ±Á½¸öÈËͬʱ²Ù×÷µÄʱºò»á³öÏÖÎÊÌ⣬Èç¹ûÄúÓкõĽâ¾ö°ì·¨£¬Ï£ÍûÄÜÓÚ´ó¼Ò·ÖÏí¡£
ÒÔÏ´úÂë´ó¶àÀ´Ô´ÓÚÍøÉÏ£¬Ôڴ˸Ðл×÷Õß¡£
//ǰ̨
<script src="JS/json2.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
var xmlHttp;
function createXMLHttpRequest()
{
    if (window.ActiveXObject)
{
        xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    else if (window.XMLHttpRequest)
{
        xmlHttp = new XMLHttpRequest();
    }
}
function doJSON() {
    createXMLHttpRequest();
    var car = getCarObject();
    xmlHttp.onreadystatechange = handleStateChange;
    xmlHttp.open("get", "Handler1.ashx?ts=" + new Date().getTime() + "&jsonStr=" + JSON.stringify(car), true);
    xmlHttp.setRequestHeader("content-type", "application/x-www-form-urlencode");
    xmlHttp.send(null);
}
function getCarObject()
{
    return new Car("Dodge","Coronet R/T",1968,"yellow");   
}
function Car(make,model,year,color)
{
    this.Make=make;
    this.Model=model;
    this.Year=year;
    this.Color=color;
}
   
function handleStateChange()
{
    if(xmlHttp.readyState == 4)
{
        if(xmlHttp.status == 200)
        {
            parseResults();
        }
    }
}
function parseResults(){
    var responseDiv = docum


Ïà¹ØÎĵµ£º

asp.net »ñÈ¡html¿Ø¼þµÄÖµµÄ´úÂë

asp.net »ñÈ¡html¿Ø¼þµÄÖµµÄ´úÂëÈçÏ£º
WebForm1.aspx£º
   < INPUT ID="TXT"  TYPE="TEXT" RUNAT="SERVER" VALUE="AAAAAA">  
    < INPUT TYPE="BUTTON" RUNAT="SERVER" VALUE="BTNTEST"  ID="BUTTON1"&nb ......

ѧϰAsp.NetµÄһЩÎÊÌâ

¸Õ±ÏÒµ£¬×î½üÔÚ¸ã±ÏÒµÂÛÎÄ¡£
˵Æð±ÏÒµÂÛÎÄÎÒ¾ÍÍ·ÌÛ£¬ÎÒÃÇÈýÈËÒ»×飬±¾À´ÎÒÖ÷ÕÅÓÃC#д£¬Ì×ÓÃÒ»¸öÍâ¹úµÄÄ£ÐÍBalloonShopÔÚÏß¹ºÎïÍøÕ¾£¬C#ÊÇ×ÔѧµÄ¡£µ«ÊÇͬ×éµÄÒ»¸öͬѧVBѧµÃ²»´í£¬ÒªÓÃVB¡£ÎÒÏëÄãÒªÓÃVBдµÄ»°ÎÒÊDz»Ì«¶®£¬ÄÇÖ»ÄÜÄã×Ô¼ºÐ´ºÃÁË£¬ÎÒ×î¶àÒ²¾Í´î°ÑÊÖ¶øÒÑ£¬Ê¡ÐÄÁË£¬ºÎÀÖ¶ø²»ÎªÄØ£¡
×îºó×÷Æ·×ö³öÀ´»¹Ëã²»´í£¬¾Í ......

ASP.NETʹÓÃÎÞCookieµÄ±íµ¥ÈÏ֤Ʊ¾Ý

ASP.NET
ʹÓÃÎÞCookieµÄ±íµ¥ÈÏ֤Ʊ¾Ý
ĬÈÏÇé¿öÏ£¬forms authentication system½«¾ö¶¨Êǽ«Æ±¾Ý´æ´¢ÔÚcookies
collectionÀﻹÊDzåÈëÓû§·ÃÎÊÒ³ÃæµÄURLÀï¡£ËùÓÐÖ÷Á÷µÄ×ÀÃæä¯ÀÀÆ÷£¬±ÈÈçInternet
Explorer£¬Firefox£¬Opera£¬»òSafari¶¼Ö§³Öcookies£¬µ«²¢·ÇËùÓеÄÒƶ¯É豸¶¼Ö§³Ö¡£
forms authentication systemʹÓúÎÖÖco ......

¹ØÓÚASP.NETµÄIISÅäÖà ¡­¡­×ª

1.5.2 ÔÚIISÉÏÅäÖÃASP.NET
ÔÚ·þÎñÆ÷Éϲ¿ÊðASP.NETÍøվʱ£¬ÐèÒª.NETµÄÔËÐл·¾³.NET Framework¡£.NET FrameworkÀàËÆÓÚJavaµÄJDK£¬°üº¬ÓÐ.NET³ÌÐòÔËÐл·¾³ºÍÃüÁîÐбàÒ빤¾ß¡£Èç¹û·þÎñÆ÷ÉÏûÓа²×°.NET Framework£¬Õâ¾ÍÐèÒª´Ó΢ÈíÍøÕ¾ÏÂÔØ£¬ÏÂÔØÍøÖ·ÊÇ£º
http://msdn2.microsoft.com/zh-cn/default.aspx
»¹ÐèҪעÒâµÄÊÇ£¬Èç¹ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ