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

Js Öд´½¨XmlÎĵµ£¬ÓÃAjax´«µ½CsÖд¦Àí£¨C#£©

function ImportRun()
{
    if(document.all.Content.children.length>0)
 {
     var oTable=document.all.Content.children(0);
     var oFldInfo=new Array();
      var oSendDom=CreateXmlDom("<dl/>");
     if(oTable.tagName=="TABLE")
     {
        var oHeadRow=oTable.rows(0);
        for(var k=0;k<oHeadRow.cells.length;k++)
        {
           oFldInfo.push(oHeadRow[k].innerText);
        }
         for(var i=1;i<oTable.rows.length;i++)
         { 
           oHeadRow=oTable.rows(i);
             for(var j=0;j<oHeadRow.cells.length;j++)
        {
            var oSI=oSendDom.createElement("di");
            oSI.setAttribute(oFldInfo[j].toString(),oHeadRow[j].innerText);
         alert(oHeadRow.cells(j).innerText+oTable.rows.length);
         oSendDom.documentElement.appendChild(oSI);
        }
      }
      
      
        }
    }
    else
    {
      alert("eeee");
    }
  
//  CreateXml2();
//   var oSendDom=CreateXmlDom("<dl/&g


Ïà¹ØÎĵµ£º

ajax / jquery / javascript

1.ʲôÊÇAjax?
AjaxµÄÈ«³ÆÊÇ£ºAsynchronous + JavaScript+XML   -------------------->  Òì²½µÄ(²»Í¬Ê±µÄ) javascript ¼° xml
2.AjaxµÄ¶¨Ò壺
Ajax²»ÊÇÒ»¸ö¼¼Êõ£¬Ëüʵ¼ÊÉÏÊǼ¸ÖÖ¼¼Êõ£¬Ã¿ÖÖ¼¼Êõ¶¼ÓÐÆä¶ÀÌØÕâ´¦£¬ºÏÔÚÒ»Æð¾Í³ÉÁËÒ»¸ö¹¦ÄÜÇ¿´óµÄм¼Êõ¡£
3.Ajax°üÀ¨£º
XHTMLºÍCSS
ʹÓÃÎĵµ¶ ......

10¸ö·Ç³£°ôµÄAjax¼°JavascriptʵÀý×ÊÔ´ÍøÕ¾

1.Ajax Rain
¡¡¡¡AjaxRainÓкܶàÍêÃÀÕûºÏAJAX, CSS, DHTML »ò JavascriptµÄʵÀý£¬ÓÐһЩDemoµÄÈ·ÖµµÃÄãÈ¥¿´Ò»¿´£¬¼´Ê¹Äã²»ÊÇÍøÒ³Éè¼Æ(¿ª·¢)ʦ¡£
Ajax/JavascriptʵÀý:
 EXT JS Date Picker
 jQuery Feed Menu
 jGrowl
 FastFind Menu – Jquery
 Spiffy Accordion
2.Ajax Daddy ......

¼òµ¥ajax´úÂë¡£

  <script type="text/javascript">
<!--
//½«Óû§ÊäÈëÒì²½Ìá½»µ½·þÎñÆ÷
function ajaxSubmit(){
 //»ñÈ¡Óû§ÊäÈë
 var question=document.forms[0].question.value;
 //´´½¨XMLHttpRequest¶ÔÏó
 var xmlhttp;
 try{
  xmlhttp=new XMLHttpRequest();  ......

asp Ê÷£¬c# ²éÕÒ Ö¸¶¨½Úµã

using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
namespace W ......

ASP.net c# ÈÕÆÚת»¯[ת]

ÈÕÆÚת»¯Ò»
ΪÁË´ïµ½²»Í¬µÄÏÔʾЧ¹ûÓÐʱ£¬ÎÒÃÇÐèÒª¶Ôʱ¼ä½øÐÐת»¯£¬Ä¬ÈϸñʽΪ£º2007-01-03 14:33:34 £¬Òª×ª»¯ÎªÆäËû¸ñʽ£¬ÒªÓõ½DateTime.ToStringµÄ·½·¨(String, IFormatProvider)£¬ÈçÏÂËùʾ£º
using System;
using System.Globalization;
String format="D";
DateTime date=DataTime,Now;
Response.Write(date.ToS ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ