⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getmodnumber.cs

📁 学术会议在线投稿系统 fghgfhgfhgfhfgh
💻 CS
字号:
using System;
using System.Data;
using System.Configuration;
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.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
/// <summary>
/// Summary description for GetModNumber
/// </summary>
public class GetModNumber:DataAccess
{
    public int modnumber;
	public GetModNumber()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    public int getmodnumber_modify(int ArticleId)
    {
        SqlCommand comm = new SqlCommand();
        conn.Open();
        comm.CommandType = CommandType.StoredProcedure;
        comm.CommandText = "User_SelectModNumber";
        comm.Connection = conn;

        SqlDataAdapter sda = new SqlDataAdapter(comm);
        DataSet ds = new DataSet();
        DataTable dt = new DataTable();
        try
        {
            sda.Fill(ds, "modnumber_modify");
            dt = ds.Tables["modnumber-modify"];
            foreach (DataRow dr in dt.Rows)
            {
                TableRow tr = new TableRow();
                for (int j = 0; j <=dt.Columns.Count - 1; j++)
                    modnumber = Convert.ToInt32(dr[0].ToString());



            }
        }
        catch (SqlException e)
        {
            String error_string = e.ToString();
            conn.Close();
            return 0;
        }
        conn.Close();

        return modnumber;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -