單擊
圖
此產品信息管理類似於管理員用戶的產品模塊管理
private void Page_Load(object sender
{
if(Session[
{
//獲得數據庫連接字符串
string STconnection = ConfigurationSettings
//創建數據庫連接
STconn = new SqlConnection(STconnection);
if(!IsPostBack)
{
//自定義BindGrid ()方法
BindGrid();
//打開連接
STconn
string STNickName = Session[
STmysql =
//創建數據庫SqlCommand對象
SqlCommand STcmd = new SqlCommand(STmysql
SqlDataReader STsdr = STcmd
if(STsdr
{
//將獲取的ID保存到會話中
Session[
}
//關閉連接
STconn
}
}
else
[
From:http://tw.wingwit.com/Article/program/net/201311/15285.html