//填充連鎖店列表框
STconn
//創建查詢連鎖店信息的sql語句
string STmysql
SqlCommand STcmd
SqlDataReader STdr
//向連鎖店下拉列表框添加默認值
STDepName
while(STdr
{
//向連鎖店下拉列表框添加連鎖店名字和ID
STDepName
}
//關閉連接
STconn
}
else
{
Response
}
}
//單擊
private void ST_ok_Click(object sender
{
if(STNickName
{
ST_Warn
ST_Warn
}
else if(STUserName
{
ST_Warn
ST_Warn
}
else
{
//創建SqlCommand對象
SqlCommand STcmd =new SqlCommand(
//獲取SqlCommand對象所調用的存儲過程名
STcmd
STcmd
STcmd
STcmd
STcmd
[
From:http://tw.wingwit.com/Article/program/net/201311/15717.html