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

Êý¾Ý½»»»Ñ§Ï°¶þ£ºasp.net C# ¶Ô sqlserver±íµÄ²Ù×÷

using System;
using System.Collections;
using System.Configuration;
using System.Data;
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.Data.SqlClient;
 
//ÏÔʾÊý¾ÝʾÀý 
public partial class Default2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //´´½¨±í¼°²åÈëÊý¾Ý
        //use jwcrm
        //create table userinfo(username char(10),userpwd char(10))
        //insert into userInfo values('ÅËÍò·É','123456')
        //insert into userInfo values('ÀîÊÀÃ÷','678910')
        //select * from userinfo
       
        //Á¬½ÓSQL
        SqlConnection thisConnection = new SqlConnection("Server=127.0.0.1;uid=sa;pwd=123;database=jwcrm");
 
        //´´½¨Êý¾Ý¿âÊÊÅäÆ÷
        SqlDataAdapter thisAdapter = new SqlDataAdapter("select * from userinfo", thisConnection);
        SqlCommandBuilder thisBuilder = new SqlCommandBuilder(thisAdapter);
        DataSet thisDataSet = new DataSet();
        thisAdapter.Fill(thisDataSet, "userinfo");
        int i = 0;
        foreach(DataRow rowData in thisDataSet.Tables[0].Rows)
        {
            i++;
      &n


Ïà¹ØÎĵµ£º

ASP.NETÊý¾Ý¿âµ¼ÈëExcel

                StringWriter sw = new StringWriter();
                sw.WriteLine("·ÃÎʹºÂòÂÊ");
      &nbs ......

asp.netÎļþÏÂÔØ

    //TransmitFileʵÏÖÏÂÔØ
         protected void Button1_Click1(object sender, EventArgs e)
        {
            /*
     &n ......

ASP.NET Excelµ¼Èëµ½SQL ServerÊý¾Ý¿â


ASP.NET Excelµ¼Èëµ½SQL ServerÊý¾Ý¿â
Ìṩ°ÑExcelÀïµÄÊý¾Ýµ¼Èëµ½SQL Server Êý¾Ý¿â£¬Ç°ÌáÊÇExcelÀïµÄ×Ö¶ÎÔÚSql Server±íÀï¶¼ÓУ¬²»È»»á³öÏÖ´íÎó¡£×¢ÊͺÜÏêϸŶ£¡ÒªÒýÓõÄÃüÃû¿Õ¼äÊÇ£º
using System.Data.OleDb;
using System.Data.SqlClient;
//²Ù×÷Àà
 public class ExcelToSQL
{
  & ......

ASP.NET MVC ÈëÃÅ5¡¢ViewÓëViewData

viewÔÚMVCģʽÖÐÓëÓû§½øÐÐ×îÖ±½ÓµÄ½Ó´¥£¬Ëü¸ºÔðÊý¾ÝµÄ³ÊÏÖ¡£ÕâÀïҪעÒâÒ»µã¾ÍÊÇ£¬viewÖ»ÊǸºÔðÊý¾ÝµÄ³ÊÏÖ£¬ËùÒÔÎÒÃÇÓ¦¸ÃÒª¾¡Á¿ÈÃ
viewÖв»Éæ¼°ÒµÎñÂß¼­µÄ´¦Àí¡£
ÎÒÃÇÀ´Ìí¼ÓÒ»¸öBlogÊ×Ò³µÄview¡£ÔÚ°²×°ÁËASP.NET MVCºó£¬ÎÒÃÇÔÚÌí¼ÓÐÂÏîÄ¿µÄʱºò¿ÉÒÔ¿´µ½ÓÐMVCµÄviewÄ£°å£º
 
×¢£ºÈç¹ûÄãµÄÊÇÖÐÎİæ
µÄVS£¬°²×°Íêºó¿ ......

ASP.NET Excelµ¼³ö(¶¯Ì¬Éú³É)½â¾ö·½°¸


ASP.NET Excelµ¼³ö(¶¯Ì¬Éú³É)½â¾ö·½°¸
£¨Ò»£©¡¢·þÎñÆ÷¶ËµÄexcel×é¼þÀ´Éú³ÉÄ¿±êExcel
  ¼´ÔÚºǫ́µ÷ÓÃexcel×é¼þ£¬À´¶Áȡģ°å£¬Ìîдģ°åµÄ¡£¾ÍÊǺǫ́Æô¶¯ExcelÀ´´¦ÀíµÄ£¬ÔÚ½ø³Ì¹ÜÀíÆ÷Àï¿ÉÒԲ鿴µ½ËüµÄ½ø³Ì¡£
  Óŵ㣺Excel´¦Àí¹¦Äܷḻ£¬¶àÑù£¬¿ÉÒÔÍê³ÉÒ»ÇеÄExcelÎļþ´¦Àí¡£
  ȱµã£º·þÎñÆ÷¶ËҪװExcel ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ