• 大小: 0.04M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-02-25
  • 语言: C#
  • 标签: asp.net  C#  

资源简介

网站生成静态页面用的

资源截图

代码片段和文件信息

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Data.SqlClient;
using System.Text;
using System.Text.Regularexpressions;


/// 
/// baseClass 的摘要说明
/// 

public class baseClass
{
    public baseClass()
    {
        //
        // TODO: 在此处添加构造函数逻辑
        //
    }
    //连接数据库的字符串
    public SqlConnection Getconn()
    {
        SqlConnection conn = new SqlConnection(“server=;UID=sa;PWD=a;database=f;Max Pool Size=512“);
        return conn;
    }


    //获取数据集
    public DataSet GetDataSet(string sql)
    {
        SqlConnection conn = Getconn();
        DataSet ds = null;
        try
        {
            conn.Open();
            ds = new DataSet();
            SqlCommand cmd = new SqlCommand(sql conn);
            SqlDataAdapter da = new SqlDataAdapter(cmd);
            da.Fill(ds);
        }
        catch (Exception e)
        {
            throw e;
        }
        finally
 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        899  2014-08-22 08:31  ConsoleApplication1.sln

    ..A..H.     21504  2016-04-21 09:47  ConsoleApplication1.suo

     文件       9833  2016-04-21 09:46  ConsoleApplication1\baseClass.cs

     文件      12288  2016-04-21 09:47  ConsoleApplication1\bin\Debug\ConsoleApplication1.exe

     文件      26112  2016-04-21 09:47  ConsoleApplication1\bin\Debug\ConsoleApplication1.pdb

     文件      11600  2016-04-21 09:46  ConsoleApplication1\bin\Debug\ConsoleApplication1.vshost.exe

     文件        490  2010-03-17 22:39  ConsoleApplication1\bin\Debug\ConsoleApplication1.vshost.exe.manifest

     文件       2499  2014-08-22 08:44  ConsoleApplication1\ConsoleApplication1.csproj

     文件       1557  2016-04-21 09:47  ConsoleApplication1\obj\x86\Debug\ConsoleApplication1.csproj.FileListAbsolute.txt

     文件      12288  2016-04-21 09:47  ConsoleApplication1\obj\x86\Debug\ConsoleApplication1.exe

     文件      26112  2016-04-21 09:47  ConsoleApplication1\obj\x86\Debug\ConsoleApplication1.pdb

     文件       5889  2016-04-21 09:47  ConsoleApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       5919  2014-08-22 09:04  ConsoleApplication1\obj\x86\Debug\ResolveAssemblyReference.cache

     文件       3373  2016-04-19 19:46  ConsoleApplication1\Program.cs

     文件       1370  2014-08-22 08:31  ConsoleApplication1\Properties\AssemblyInfo.cs

     目录          0  2014-08-22 08:31  ConsoleApplication1\obj\x86\Debug\TempPE

     目录          0  2016-04-21 09:47  ConsoleApplication1\obj\x86\Debug

     目录          0  2016-04-19 19:41  ConsoleApplication1\bin\Debug

     目录          0  2016-04-19 19:41  ConsoleApplication1\obj\x86

     目录          0  2016-04-19 19:41  ConsoleApplication1\bin

     目录          0  2016-04-19 19:41  ConsoleApplication1\obj

     目录          0  2016-04-19 19:41  ConsoleApplication1\Properties

     目录          0  2016-04-19 19:48  ConsoleApplication1

----------- ---------  ---------- -----  ----

               141733                    23


评论

共有 条评论