|
asp.net高级教程(三)-实战篇(11)
SQLCommand myCmd = new SQLCommand() ;
//判断是新建用户还是修改用户资料
if (a_enumCreateType == BBSUser.CreateType.Create)
{
myCmd.CommandText = "insert into BBSUser(UserName ,
Password , Email , Homepage , Signature)"
+ "values('" + a_strUserName + "','"
+ a_strPassword + "','"
+ a_strEmail + "','" + a_strHomepage
+ "','" + a_strSignature + "')" ;
}
else
{
myCmd.CommandText = "update BBSUser set Email='" +
a_strEmail
+ "' , Homepage='" + a_strHomepage + "' ,
|