易截截图软件、单文件、免安装、纯绿色、仅160KB

Asp.NET XMLHTTP获取网页内容C#版

首先需要在项目中添加(Microsoft XML, v3.0)的引用
using MSXML2;
private string VerifyNotifyURL(string URL)
{
    MSXML2.XMLHTTPClass xmlhttp=new MSXML2.XMLHTTPClass();
    try
    {
        xmlhttp.open("GET",URL,false,null,null);
        xmlhttp.setRequestHeader("CONTENT-TYPE","text/xml;charset=gb2312");            
        xmlhttp.send(null);
        return System.Text.Encoding.GetEncoding("gb2312").GetString((byte[])xmlhttp.responseBody);
    }
    catch 
    {
        return "";
    }            
}


相关文档:

Automatically Printing Crystal Reports in ASP.NET


This server-based method is documented in the Visual Studio help files.  Open the Help Index, and enter PrintToPrinter in the "Look for:" box.  The syntax for this method is:
Report.PrintToPrinter(<copies as int>, <collated as True/False>, <startpage as int>, <endp ......

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数据库导入Excel

                StringWriter sw = new StringWriter();
                sw.WriteLine("访问购买率");
      &nbs ......

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
{
  & ......

c# 操作mssql数据库 含有带参数sql语句运行

<?xml version="1.0" encoding="utf-8"?>
<configuration>
 <appSettings>
  <add key="Default" value="Default" />
 </appSettings>
 <connectionStrings>
  <add name="Default" connectionString="Data Source=192.168.1.197;User ID ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号