STmyGrid
BindGrid();
}
(
//單擊
public void STmyGrid_delete(object source
{
//創建刪除指定ID的sql語句
string STstrsql =
//創建SqlCommand對象
SqlCommand STcmd = new SqlCommand(STstrsql
//向SqlCommand對象添加參數
STcmd
//向參數賦值
STcmd
STcmd
try
{
//執行sql語句
STcmd
}
catch(SqlException)
{
}
STcmd
Response
}
單擊左邊鏈接的
http://develop
圖
文本框用來輸入產品名稱
private void Page_Load(object sender
{
if(Session[
{
//獲得數據庫連接字符串
string STconnection = ConfigurationSettings
right
From:http://tw.wingwit.com/Article/program/net/201311/15654.html