<asp:comparevalidator id=
ErrorMessage=
<TD>
<asp:Button id=
<asp:Label id=
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
<uc
STUserUpdatePwd
private void Page_Load(object sender
{
// 在此處放置用戶代碼以初始化頁面
if(Session[
{
//獲得數據庫連接字符串
string STconnection = ConfigurationSettings
STconn = new SqlConnection(STconnection);
//獲取登錄用戶的登錄名
STNickName = Session[
STconn
//創建查詢登錄用戶密碼的sql語句
string STstrsql =
//創建數據庫的SqlCommand對象
SqlCommand STcmd = new SqlCommand(STstrsql
//執行SqlCommand對象中數據的讀取
SqlDataReader STsdr = STcmd
while(STsdr
{
//將獲得的用戶名密碼保存到會話中
Session[
right
From:http://tw.wingwit.com/Article/program/net/201311/15330.html