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
Ïà¹ØÎĵµ£º
ÏÂÃæÊÇcommond:
MySQLCommand cmd;
cmd = new MySQLDriverCS.MySQLCommand("DROP TABLE IF EXISTS test.mysqldrivercs_test",conn);
cmd.ExecuteNonQuery();
cmd.Dispose();
ÏÂÃæÊÇinsert:
string Value = "Value";
int SettingID = 1;
new MySQLInsertCommand(conn,
new object[,] {{"SettingID",SettingID},{"S ......
¼´Ê¹ÎÒ½«Êý¾Ý¿â·ÅÔÚÏîÄ¿ÄÚ½¨µÄÎļþ¼ÐdbÏ£¬¿ÉÊǽøÐд洢²Ù×÷µÄʱºò£¬Êý¾Ý±íûÓÐÈκα仯¡£ºóÀ´·¢ÏÖ´¢´æ¸Ä±ä·¢ÉúÔÚbin\\debug\\dbĿ¼ÏµÄÊý¾Ý¿âÖУ¬Õâ¸öÊý¾Ý¿âÊÇÔÚ³ÌÐòÔËÐÐʱ×Ô¶¯¸´ÖƹýÈ¥µÄ£¬¿ÉÊÇΪʲô´æ´¢±ä»¯Ã»Óз´Ó¦µ½ÍâÃæÏîÄ¿ÄÚµÄÊý¾Ý¿âdbÏÂÄØ£¿ÎÒÏëÁ¬½Ó×Ö·û´®ÖÐdatasourceÖеÄdatadirectory´æÔÚһЩÐþ»ú£¬ÓÚÊÇÎÒÕÒµ½Ò ......
1.ÈÃмӵÄÄÇÏî»õÆ·¸ßÁÁÏÔʾ£¬¾ÍÒªÕÒµ½Äļþ»õÆ·±»×îиü¸ÄµÄ¡£
Æäʵ¸úÌí¼ÓAjax¹¦ÄÜÒ»Ñù¼òµ¥£¬Ö»ÊÇÒª¿ç¼¸¸öÎļþϾÍÓеãÄ£ºý£¬¿öÇÒÎÒÊÇ×Ô¼ºÐ´µÄ
£¬ËùÓеķ½·¨Ãû¸ú±äÁ¿¼°²ÎÊýɶµÄ¶¼¸úÊéÉϲ»Ò»Ñù(µ«ÔÀíÒ»ÑùµÄ)£¬ËùÒÔ¼ÓÉÏÕâЩ¹¦
ÄÜÄÑÃâ»áÃÔºýЩ£¬ÕâÒ²ÕýºÃÄÜÁ·ºÃ×Ô¼ºµÄÂß¼£¬¸ü¶®µÃrailsµÄÁ÷³Ì£¬»¹ÓÐÊÕ»ñ¾ÍÊÇÒª
Ñø³ÉºÃµÄ±à³ ......
ajax ÔÚÄ¿Ç° web ÁìÓòÒѹ㷺ӦÓã¬ÆäÕæÕýºËÐÄÖ»²»¹ýÊÇÒ»¸ö·â×°ºÃÁ赀 js ¿â¡£×îÎ廨°ËÃŵÄĪ¹ýÓÚ asp.net µÄ¿Ø¼þ£¬ÎÒ¸öÈËÈÏΪ ajax Ö»ÊÇÒ»¸öÇáÁ¿¼¶µÄ¶«Î÷£¬¸ù±¾Ã»ÓбØÒª½«Ëüд³É·þÎñÆ÷×é¼þ£¬Èç ajax.net¡¢AjaxControlToolkit µÈ¡£ËùÒÔÎÒÒ»Ö±ÊÓÕâЩ×é¼þΪÀ¬»ø¡£¡£¡£
ÒÔÏÂ˵Ã÷ÎÒΪʲô²»ÈÏͬ ajax µÄÏà¹Ø×é¼þ£º ......
ÏÂÃæÒª½â¾öµÄÎÊÌâÈçÏ£º
1.ÈçºÎÔÚJavaScript·ÃÎÊC#º¯Êý?
¡¡¡¡2.ÈçºÎÔÚJavaScript·ÃÎÊC#±äÁ¿?
¡¡¡¡3.ÈçºÎÔÚC#ÖзÃÎÊJavaScriptµÄÒÑÓбäÁ¿?
¡¡¡¡4.ÈçºÎÔÚC#ÖзÃÎÊJavaScriptº¯Êý?
¡¡¡¡ÎÊÌâ1´ð°¸ÈçÏ£º
¡¡¡¡javaScriptº¯ÊýÖÐÖ´ÐÐC#´úÂëÖеĺ¯Êý£º
¡¡¡¡·½·¨Ò»£º
&nbs ......