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Ò³ÃæµÄÄ£Ðͱ¾ÖÊÉÏÊÇͬ²½µÄ¡£Õâ˵Ã÷£¬Ò³ÃæµÄÁ÷³ÌÊǹ̶¨µÄ£¬Ã¿Ò ......
¸Õ±ÏÒµ£¬×î½üÔÚ¸ã±ÏÒµÂÛÎÄ¡£
˵Æð±ÏÒµÂÛÎÄÎÒ¾ÍÍ·ÌÛ£¬ÎÒÃÇÈýÈËÒ»×飬±¾À´ÎÒÖ÷ÕÅÓÃC#д£¬Ì×ÓÃÒ»¸öÍâ¹úµÄÄ£ÐÍBalloonShopÔÚÏß¹ºÎïÍøÕ¾£¬C#ÊÇ×ÔѧµÄ¡£µ«ÊÇͬ×éµÄÒ»¸öͬѧVBѧµÃ²»´í£¬ÒªÓÃVB¡£ÎÒÏëÄãÒªÓÃVBдµÄ»°ÎÒÊDz»Ì«¶®£¬ÄÇÖ»ÄÜÄã×Ô¼ºÐ´ºÃÁË£¬ÎÒ×î¶àÒ²¾Í´î°ÑÊÖ¶øÒÑ£¬Ê¡ÐÄÁË£¬ºÎÀÖ¶ø²»ÎªÄØ£¡
×îºó×÷Æ·×ö³öÀ´»¹Ëã²»´í£¬¾Í ......
ÎҵĻú×ÓÔ±¾¾ÍÓÐInternetÐÅÏ¢·þÎñ£¨IIS£©µÄ°²×°Ñ¡ÏÏÂÁ˺ܶà°æ±¾µÄIIS»òi386Îļþ¿É¾ÍÊÇȱÕâȱÄǵģ¬Èç:iisapp.vbs
°´ÍøÉÏ˵µÄÐÞ¸´Êý¾ÝÒ²ºÁÎÞÆðÉ«£¬×îºó
½â¾ö·½°¸£º
Ê×ÏÈÔÚ“¿ªÊ¼”²Ëµ¥µÄ“ÔËÐДÖÐÊäÈë“c:\Windows\inf\sysoc.inf”£¬ÏµÍ³»á×Ô¶¯Ê¹ÓüÇʱ¾´ò¿ªsy ......
asp.net ÃÜÂë»Ø´«ºó£¬²»¼û µÄ½â¾ö°ì·¨
<asp:UpdatePanel ID="UpdatePanel5" runat="server">
& ......