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

asp.netÈçºÎ°Ñexcelµ¼Èëµ½sql

Ë­ÖªµÀ£¬×îºÃÊÇʵÀý£¬²âÊÔ¹ýµÄ¸üºÃ£¬Ð»Ð»·ÖÏí£»
http://www.92dotnet.com/showtopic-428.aspxC# code:

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.Data.OleDb;
using System.IO;


public partial class Excel : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}

/// <summary>
/// °ÑExcelÖеÄÐÅÏ¢µ¼Èëµ½Êý¾Ý¿âµÄ±íÖÐ
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ButASPNET_Click(object sender, EventArgs e)
{
if (this.ExcelFile.PostedFile != null)
{
SqlConnection conn = new SqlConnection("server=.;database=ExcelDB;uid=sa;pwd=123456");
conn.Open();
try
{
string fileurl = typename(ExcelFile);//µ÷ÓÃtypename·½·¨È¡µÃexcelÎļþ·¾¶
DataSet ds = new DataSet();//È¡µÃÊý¾Ý¼¯
ds = xsldata(fileurl);
int errorcount = 0;//¼Ç¼´íÎóÐÅÏ¢ÌõÊý
int insertcount = 0;//¼Ç¼²åÈë³É¹¦


Ïà¹ØÎÊ´ð£º

asp.net½çÃæ

ÎÒ×öÁËÒ»¸öasp.netµÄÍøÒ³£¬µ«½çÃæÌ«ÄÑ¿´£¬ÓÃʲô¹¤¾ß¿ÉÒÔÃÀ»¯Ï£¿
Ò»°ã¾ÍÊÇcssºÍflashÁË.

»òÕßÓÃһЩµÚÈý·½µÄasp.net¿Ø¼þ.

ÎÒµÄÒ³ÃæÔÚ´óÒ»µãµÄÏÔʾÆÁÉϲ»»á×Ô¶¯ÉìËõ£¬Ôõô°ì£¿

ÃÀ¹¤°¡£¬CSS£¬²»»á°É£¬´´½¨Ò ......

asp.net Á¬½ÓsysbaseÊý¾Ý¿â¹ÊÕÏ

ÎÒʹÓÃODBCÁ¬½ÓsysbaseÊý¾Ý¿â£¬ÔÚasp.netÖÐÓÃSqlDataSourceÉèÖÃÊý¾ÝÁ¬½Ó£¬¹ý³ÌÖгöÏÖÒ»¸öµ¯³ö¿òûÓÐ˵Ã÷¾ÍÊÇÒ»¸ö¾¯¸æµÄͼ±ê¡¢Ò»¸öÈ·¶¨°´Å¥£¬µã»÷¼ÌÐø£¬Äܹ»Íê³É²éѯ¡£ÔÚä¯ÀÀÆ÷ÉÏÔËÐÐʱ»¹Êǵ¯³öÄǸöµ¯³ö¿ò£¬±ØÐëµã»÷² ......

ÈçºÎÉú³ÉASCII¸ñʽÎļþ asp.net

rt  ÎÒÉú³ÉµÄÎļþµÄ±£´æ¶¼ÊÇutf-8 ÈçºÎÄÜÊÖ¶¯¿ØÖƳÉASCII


System.IO.File.WriteAllText(@"c:\a.txt", "hello", Encoding.ASCII);

ÄÇÊ×ÏÈ¿´Äã¶Á½øÀ´µÄÎļþÊǸöʲô±àÂë¸ñʽ,Èç¹ ......

ÖÐÇï·ÖÏí~ ASP.NETÒ³ÃæÉúÃüÖÜÆÚ

ºÜ¼òµ¥ºÜ»ù´¡µÄ¶«Î÷~ ¿ÉÊÇ,ÕæÕýÀí½âµÄÈËÓÖÓм¸¸ö?!~

ASP.NETÒ³ÃæÉúÃüÖÜÆÚÃèÊö

ÏÂÃæÊÇASP.NETÒ³Ãæ³õʼµÄ¹ý³Ì:
1. Page_Init();
2. Load ViewState;
3. Load Postback data;
4. Page_Load() ......

asp.net×îÖ÷ÒªµÄ֪ʶµãÊÇʲô£¿

ÒòΪÎÒÏëÓÃasp.netÈ¥¹«Ë¾ÕÒ¹¤×÷£¬Ò»°ã¹«Ë¾ÒªÓõ½Ð©Ê²Ã´¼¼Êõ?asp.net×îÖ÷ÒªµÄ֪ʶµãÊÇʲô£¿
webform
ajax
css
js

Â¥Ö÷ÎÒÏë˵µÄÊÇÄãµÄÍ·Ïñ¿á±ÐÁË

ÒýÓÃ
Â¥Ö÷ÎÒÏë˵µÄÊÇÄãµÄÍ·Ïñ¿á±ÐÁË

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