Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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


Ïà¹ØÎĵµ£º

AccessÊý¾Ý¿âÔÚC#.netϵĴ洢·¾¶ÎÊÌâ

¼´Ê¹ÎÒ½«Êý¾Ý¿â·ÅÔÚÏîÄ¿ÄÚ½¨µÄÎļþ¼ÐdbÏ£¬¿ÉÊǽøÐд洢²Ù×÷µÄʱºò£¬Êý¾Ý±íûÓÐÈκα仯¡£ºóÀ´·¢ÏÖ´¢´æ¸Ä±ä·¢ÉúÔÚbin\\debug\\dbĿ¼ÏµÄÊý¾Ý¿âÖУ¬Õâ¸öÊý¾Ý¿âÊÇÔÚ³ÌÐòÔËÐÐʱ×Ô¶¯¸´ÖƹýÈ¥µÄ£¬¿ÉÊÇΪʲô´æ´¢±ä»¯Ã»Óз´Ó¦µ½ÍâÃæÏîÄ¿ÄÚµÄÊý¾Ý¿âdbÏÂÄØ£¿ÎÒÏëÁ¬½Ó×Ö·û´®ÖÐdatasourceÖеÄdatadirectory´æÔÚһЩÐþ»ú£¬ÓÚÊÇÎÒÕÒµ½Ò ......

C#ÓëSqliteÊý¾Ý¿â²Ù×÷ʵÀý

ÕâÊÇÒ»¸öÓйطÖÒ³µÄʵÀý,½ö¹©²Î¿¼(´úÂëÀ´×ÔÍøÂç)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SQLite;
using System.Threading;
using System.Collections;
us ......

¹ØÓÚjquery1.3.1£¬IE7,IE8ÖÐÎÞ·¨Ê¹ÓÃajaxµÄÌÖÂÛ£¿

´ó¼ÒºÃ£¬×î½üʹÓÃjqueryµÄajax¹¦ÄÜ£¬µ«ÊÇ·¢ÏÖ$.ajax()·½·¨²»ÄÜÌá½»µ½ºǫ́£¬ÎÒÊÇÓõÄÊÇIE7£¬
ÆäËû·½·¨ÈçgetºÍpostûÓÐÊÔ¹ý£¬µ«ÓÉapiËùÖªµ×²ã¶¼ÊÇÓÃajax·½·¨À´ÊµÏֵġ£
ͨ¹ý²é¿´Ô´Âë·¢ÏÖ
// Create the request object; Microsoft failed to properly
// implement the XMLHttpRequest in IE7, so we use the ActiveXObje ......

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ºÅ