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

ÇëÎÊÓÐaspµ¼ÈëexlsdµÄ¸ßÊÖÔÚÂð - Web ¿ª·¢ / ASP




¼ÙÉ轫10ÌõÈÕÆÚ¸ñʽÊý¾Ý(Èç2010-1-1,2010-1-15...)²åÉϵ½sqlµÄdatetime¸ñʽÖÐ, 
ÏÖÔÚÎÒµÄÔËÐÐÖ»ÄÜÒ»´ÎÈ«²¿²åÈçÓоßÌåÈÕÆÚµÄÊý¾Ý, Òª²»¾ÍÖ»ÄÜÈ«²¿²åÈëNUll,

Èç¹ûÎÒÒª½«10ÌõÊý¾ÝÖÐÓÐ5ÌõÊÇÓоßÌåÈÕÆÚµÄ,Áí5ÌõΪNULL
Èç
2010-1-1
2010-1-3
null
2010-1-5
null
null
.
.
.
¾ÍÌáʾ±¨´í,


Microsoft OLE DB Provider for ODBC Drivers ´íÎó '80040e14' 

[Microsoft][ODBC SQL Server Driver][SQL Server]µÚ 1 ÐÐ: ',' ¸½½üÓÐÓï·¨´íÎó¡£ 

/upstar.asp£¬ÐÐ 25 



¸½´úÂë:
'SQL²éѯExcelÀïµÄSheet1±íÀïµÄËùÓмǼ
ExcelSQL = "Select * from [Sheet1$]"
'´´½¨Rs¼Ç¼¼¯
Set Rs = ExcelConn.Execute(ExcelSQL)
'Ñ­»·²åÈëAccessÊý¾Ý¿â
Do While Not Rs.Eof
  InSertSQL = "Insert Into text([a],[b],[c],[d],[e],[f],[g],[h],[i],[j],[k],[l]) Values('"&Rs(0)&"','"&Rs(1)&"','"&Rs(2)&"','"&Rs(3)&"',"&Rs(4)&",'"&Rs(5)&"','"&Rs(6)&"','"&Rs(7)&"',"&Rs(8)&",'"&Rs(9)&"','"&Rs(10)&"',"&Rs(11)&")"
  AccessConn.Execute(InSertSQL)
Rs.MoveNext
Loop
Response.Write ("<script language=javascript>alert('Êý¾Ý²åÈë³É¹¦£¡')</script>") 
Response.Write("Êý¾Ý²åÈë³


Ïà¹ØÎÊ´ð£º

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

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

Asp+sql serverÎÊÌâ - Web ¿ª·¢ / ASP

ÎÒÒ»¸öÏîÄ¿£¬Óиö²åÈë²Ù×÷£¬¾ßÌåÊÇÕâÑùµÄ£º
ÎÒÓнø»õÐÅÏ¢±í¡£ÔÚ³ö»õʱѡÔñÏàÓ¦µÄ½ø»õÐÅÏ¢£¬ÊäÈëÊýÁ¿£¬Ñ¡Ôñ²¿Ãź󣬵㱣´æ°´Å¥£¬ÓÉÓÚÍøÂçÑÓʱ£¬µãÒ»ÏÂûÓз´Ó³£¬ÓÚÊÇÓû§¾ÍÓÖµãһϣ¬µ¼ÖÂÒ»´Î²åÈëÁËÁ½Ìõ¼Ç¼:
Àý£º ......

ASPα¾²Ì¬ - Web ¿ª·¢ / ASP

aspÐéÄâÖ÷»úʵÏÖα¾²Ì¬µÄ·½·¨£º
1¡¢ ÖØÐ´url²ÎÊý
Step1: ½¨Á¢Ç°Ì¨Îļþindex.asp£¬ÐÞ¸Äurl²ÎÊýÐÎʽ¡£ÓÉÓÚ¶ÁÈ¡Êý¾Ý¿âÖеļǼ²»ÊÇרÌâµÄÖØµã£¬¹ÊÖ±½Ó¸ø³ö:
<!--#include file="config.asp" -->
&l ......

asp.netÅúÁ¿ÉÏ´«Í¼Æ¬ - .NET¼¼Êõ / ASP.NET

asp.netÅúÁ¿ÉÏ´«Í¼Æ¬×îºÃÓÐÔ´Â룬ÔÚÏߵȣ¡£¡£¡£¡£¡£¡£¡
Ô´ÂëºÜ³¤µÄ¡£

²Î¿¼

C# code:
HttpFileCollection files = HttpContext.Current.Request.Files;
if (files.Count <= 1)
{
......

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

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

js ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ