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

asp.Net µ÷Óà SAP RFC, È¡µÃSAPÊý¾Ý

¶ÁÈ¡SAPÊý¾Ý, ´ÓÁ½·½ÃæÀ´×ö
1) ×öÒ»¸öC# app ÔÚ·þÎñÆ÷ÉÏ"ÈÎÎñ¼Æ»®"ÿÌì¶ÁÈ¡. ±ØÐëÔÚ·þÎñÆ÷ÉÏÖ´ÐÐ, ·ñÔò¿ÉÄÜ´ÓSAP¶ÁµÄºº×ÖÊÇÂÒÂë.
2) ¶ÔÓÚҪʵʱ¶ÁÈ¡µÄ, ×ö³ÉÒ³Ãæ»òweb Service·ÅOAÉÏ.
ÏÂÃæÊÇÒ³ÃæʵÏֵIJ¿·Ö´úÂë.
using System.Data.SqlClient;  //Á¬½ÓSQL SERVER
using System.Data.OleDb;     //°ÑÒ³ÃæGridViewµÄÊý¾Ýµ¼³öEXCELÖÐÓõ½
using SAPFunctionsOCX;    //ÒÔÏÂÈýÏî°²×°SAP¿Í»§¶ËºóÒýÓÃ
using SAPLogonCtrl;
using SAPTableFactoryCtrl;
//Ò³ÃæÉϵ÷ÓÃʼþ
    protected void Button2_Click(object sender, EventArgs e) 
    {
        stdate = System.DateTime.Now;
        DataTable dt = this.GetGridData();
        foreach (DataRow row in dt.Rows)
        {
            tOrder = row["Éú²ú¶©µ¥"].ToString();
            if (string.IsNullOrEmpty(tOrder) == true)
            {               
                break;
            }
            else
            {
                ExecSQL("INSERT INTO ÖضÁ¶©µ¥(Éú²ú¶©µ¥) VALUES ('" + tOrder + "')");
            }
        }
        dt.Dispose();
        GridView2.DataSource = GetDataSet("select * from ÖضÁ¶©µ¥ where ״̬


Ïà¹ØÎĵµ£º

ASP.NET(C#)ʵÏÖÒ»´ÎÐÔÉÏ´«¶àÕÅͼƬ£¨¶à¸öÎļþ£©

ÔÚ×öasp.netµÄWeb¿ª·¢µÄʱºò£¬ÎÒÃǾ­³£»áÓöµ½Ò»´ÎÐÔÉÏ´«¶à¸öÎļþµÄÐèÇó¡£Í¨³£ÎÒÃǵĽâ¾ö·½·¨Êǹ̶¨·Å¶à¸öÉÏ´«Îļþ¿ò£¬ÕâÑùµÄ½â¾ö°ì·¨ÏÔÈ»ÊDz»ºÏÀíµÄ£¬ÒòΪһ´ÎÉÏ´«¶à¸ö£¬¾ÍÒâζ×ÅÊýÁ¿²»È·¶¨¡£Òò´ËÎÒÃǾÍÒªÈÃÕâЩÎļþÉÏ´«¿ò¶¯Ì¬Ìí¼Ó£¬ÏÂÃæÎÒÒÔÎÒ×öµÄÒ»¸öͼ¿â¹ÜÀíÖеÄÉÏ´«Í¼Æ¬µÄ¹¦ÄÜΪÀý
ÏÈ¿´Ð§¹û£º
´ò¿ªµÄ³õʼ½çÃ棺
ĬÈÏ ......

ASP.NET DBHelperÀà

using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using System.Data.Common;
using System.Data;
namespace DownData.dal
{
    public static class DBHelper
    {
        private stati ......

asp.net UrlÖØдѧϰ

1.ͨ¹ýRewritePathʵÏÖÖØд
     URLÖØд¿ÉÒÔͨ¹ý±à³ÌµÄ·½Ê½À´ÊµÏÖ¡£ASP.NETÖеÄContex.RewritePath()·½·¨¿ÉÒÔÈÃÄã´Ó³ÌÐòÖÐʵÏÖÖØдÇëÇóµÄURL¡£Ò»µ©ÖØдºó£¬ÏµÍ³½«Ê¹ÓÃеķ¾¶À´¼ÌÐøÖ´ÐÐÕâ¸öÇëÇó¡£ 
    ÔÚGlobal.asaxÎļþµÄApplication_BeginRequest()·½·¨ÖУ¬ÄãÐèÒªÔö¼Ó´úÂëÀ ......

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
{
  & ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ