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

asp.netתÒëExcelµÄÎÊÌ⣿ - .NET¼¼Êõ / ASP.NET

ÏÖÔÚÎÊÌâÊÇÎÒµ¼³öµÄÕýÈ·¡£µ«ÏÔʾµÄʱºòÓеãÎÊÌâ¡£
Êý¾Ý¿âÖбàºÅΪ£º430221199001200000 
ExcelÏÔʾΪ:4.30221E+17

ÈçºÎÈñàºÅÔÚExcelÖÐÏÔʾΪ 430221199001200000
Çó¾È¡£¡¢¡£ÖªµÀµÄ˵»°~£¡£¡£¡£¡

C# code:

XXX.Attributes.Add("style", "vnd.ms-excel.numberformat: @;");




ÕâÑù»áÒÔ×Ö·û´®¸ñʽÊä³ö£¬Ò»¶¨Äܱ£³ÖÔ­Ñù

ÊÖ¶¯¶¥Æð£¡·

ÎÒÊÇÕâÑùдµÄ¡£¡£×Ö·û´®Ã»ÓÐAttributes
tablexml+=@"<td>"+dt.Rows[i][CellsNames[a].ToString()]+"</td>"
ÄÇÏÖÔÚ¸ÃÔõô°ì


ÒýÓÃ

ÎÒÊÇÕâÑùдµÄ¡£¡£×Ö·û´®Ã»ÓÐAttributes
tablexml+=@"<td>"+dt.Rows[i][CellsNames[a].ToString()]+"</td>"
ÄÇÏÖÔÚ¸ÃÔõô°ì


ÎÒÓõÄÊÇGridviewµ¼³ö£¬È¡ÄǸöcellÔö¼ÓÊôÐÔ£¬ÄãÓõÄxmlÎҾͲ»ÖªµÀÁË

àÅ¡£¡£
  лÁËàÞ

ÖªµÀµÄ¡£¡£ËٶȽøÀ´°ï棡£¡£¡£¡£¡£¡£¡

excelʹÓÃ×Ö·û´®¸ñʽ

ÒýÓÃ
excelʹÓÃ×Ö·û´®¸ñʽ

ʲôÒâ˼¡£¡£Äܲ»ÄܰѴúÂëÌù³öÀ´¡£
ÔÚÍøÉÏûÕÒµ½¡£¡£
C# code:

//ExcelÏÔʾʱ»á°Ñ±àºÅ£º430221199001200000 ÏÔʾΪ:4.30221E+17
//ÇëÎÊÈçºÎ½â¾ö!!!!!!
//tablexml¾ÍÊÇÒ»¸ö<table>&


Ïà¹ØÎÊ´ð£º

¶¯Ì¬È¡µÃaspÀà³ÉÔ±

ÓÐÒ»¸öÀà
class adc
{
dim a,b,c
}
ÈçºÎÔÚÁíÍâÒ»¸öÀàÖÐÈ¡µÃÀà³ÉÔ±¼°³ÉÔ±¸öÊý
class getmenber
{
dim menbers()
function getmenbers(resclass)
'resΪһδ֪Àà
'getmenber ......

asp.netµ¼³öEXCELÎÊÌ⣡ - .NET¼¼Êõ / ASP.NET

C# code:

SqlConnection conn = CsDB.sqlcon();
SqlDataAdapter da = new SqlDataAdapter("select fwCoding from bjmuma_fwCoding where OrderNumber='" + Order + & ......

asp.net Ò³ÃæÏÞʱÌá½» ÈçºÎʵÏÖ - .NET¼¼Êõ / ASP.NET

1.asp.net×öµÄÒ»¸ö´ðÌâÒ³Ãæ£¬ÈçºÎʵʱÏÞʱºó×Ô¶¯Ìá½»£¬Çë´ó¼Ò¸øµã˼·
ÏÞʱµÄʱ¼äÐÅÏ¢´æ·ÅÔÚÊý¾Ý¿âÖÐ
2.Èç¹û´ðÌâʱ¼äÉèÖõĽϳ¤£¬ÈçºÎ·½Ê½session³¬Ê±ºóÒ³ÃæÎÞЧ
лл
ÓÃjs·½·¨À´¿ØÖÆ
»Ø¸´ÄÚÈÝÌ«¶ÌÁË¡£¡£

js ......

ASP ¡£NETÈçºÎÑ¡Ôñ - Web ¿ª·¢ / ASP

´ó¼ÒºÃ!ÎÒÊÇÒ»¸öѧÉú,ÏÖÔÚÊÇѧASPµÄ²»ÖªµÀÔõô»ØÊÂ,ÎÒ×Ô¼ºÊÇÓÃCMS×ö¹ýÍøÕ¾ ´úÂëÒ²ÄÜ¿´¶®Ò»µã ÏÖÔÚÏëÂò±¾Êé,Ïë·¨Óкܶà,¾ÍÊÇÏëÂòASPµÄ ÓÖ¿´µ½´ó¼Ò˵ASPÒÔºóûÓÐNETǰ¾°ºÃ,ÎÒÓÖÏëÔÙÈ¥Âò±¾ASP.NETµÄ ÎÒÖªµÀÓÐÕâÑùµÄÏë·¨ ......

ASPÍøÒ³Êý×éËæ»úÅÅÁÐÊä³ö - Web ¿ª·¢ / ASP

ÏÖÓÐÒ»¸ö±í¸ñ£¬ÓкܶàÐÐÊý×é¡£
ÏëÒªÒ»¸ö½Å±¾£¬¶ÁÈ¡ËùÓÐÐеÄÊý×éºóÊä³ö¡£
Êä³öǰ²»ÏÔʾÕý³£Ë³ÐòµÄ±í¸ñÊý×飬¶øÖ±½ÓÏÔʾ³ö¶ÁÈ¡ºóµÄÊý×é¡£
Â¥Ö÷µÄ±í´ïʵÔÚ³ÉÎÊÌ⣡£¡
ÊDz»ÊÇÕâ¸öÒâ˼£¿
<%
Dim ArrDNA£¨10£¬10£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ