vb.net无法保存 为什么vb保存后打不开( 二 )


ds = new DataSet("userDataset");
da.Fill(ds, "userTable");
return ds;
}
catch
{
return ds;
}
}
}
order
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
using System.Collections;
/// summary
/// order vb.net无法保存的摘要说明
/// /summary
public class order
{
public order()
{
//
// TODO: 在此处添加构造函数逻辑
//
}
}
public class OrderItemInfo
{
public int ProductID;
public int Number;
public double Price;
public string Name;
}
public class OrderInfo
{
public int TotalNumber;
public double TotalMoney;
public ArrayList OrderItemList = new ArrayList();
}
注册页面
database db = new database();
String xb;
if (RadioButton1.Checked == true)
xb = "男";
else
xb = "女";
string sqlstr = "insert memberlist(memberid,memberpwd,membersex,membere_mail) values('" + TextBox1.Text + "','" + TextBox2.Text + "','" + xb + "','" + TextBox4.Text + "')";
int num = db.executenon(sqlstr);
if (num0)
{
Response.Write("script language='javascript'alter('注册成功')/script");
Response.Redirect("Default.aspx");
}
else
{
Response.Write("script language='javascript'alert('注册不成功')/script");
Response.Redirect("loginpage.aspx");
登陆按钮
string meid = TextBox1.Text;
string mepwd = TextBox2.Text;
string sqlstr = null;
if (RadioButton1.Checked)
{
sqlstr = "select count(memberid) from guanglilist where memberid='" + meid + "' and memberpwd='" + mepwd + "'";
}
else
{
sqlstr = "select count(memberid) from memberlist where memberid='" + meid + "' and memberpwd='" + mepwd + "' and checked='已审核'";
}
database db = new database();
int num = db.executesal(sqlstr);
if (num0)
{
Response.Write("script language='javascript'alter('登陆成功')/script");
MultiView1.ActiveViewIndex = 1;
if (RadioButton1.Checked)
{
HyperLink1.Visible = true;
}
else
{
HyperLink1.Visible = false;
}
}
else
Response.Write("script language='javascript'alert('登录失败')/script");
HttpCookie cookie = new HttpCookie("loginMessage");
cookie.Values.Add("meid", meid);
Response.Cookies.Add(cookie);
Label3.Text = meid;
密码修改
protected void Page_Load(object sender, EventArgs e)
{
if (null != Request.Cookies["loginMessage"])
{
HttpCookie cookie = Request.Cookies["loginMessage"];
Label2.Text = Request.Cookies["loginMessage"]["meid"].ToString();
}
}
protected void Button1_Click(object sender, EventArgs e)
{
string opwd = TextBox1.Text;
string npwd = TextBox2.Text;
string usid = Label2.Text;
string sqlstr = "update guanglilist set memberpwd='" + npwd + "' where memberid='" + usid + "' and memberpwd='" + opwd + "'";
database db = new database();
int num = db.executenon(sqlstr);
if (num0)
{
Response.Write("script language='javascript'alert('密码修改成功')/script");
}
else
{
Response.Write("script language='javascript'alert('原密码错误')/script");
}
TextBox1.Text = "";
TextBox2.Text = "";
TextBox3.Text = "";
}
成员管理
屏蔽vb.net无法保存,审核:
string id = Convert.ToString(GridView1.SelectedDataKey.Value);
Response.Redirect("detail.aspx?id=" + id);

推荐阅读