您的位置:首页 > 编程语言

测试测试能否贴代码

2015-07-03 11:58 253 查看
protected void Page_Load(object sender, EventArgs e)
{
//给下单按钮增加一个"确认"对话框
//string xxx = "return confirm('您选择的" + Bill[0] + Bill[1] + ",确定要下单吗?')";
//ReferBill.Attributes.Add("onclick", xxx);
try
{
SqlConn = new SQLiteConnection("Data Source=E:/sqlite_dll/bill.db");
SqlConn.Open();
string login_usrname = Request.QueryString["username"];
current_user.Text = login_usrname;
//FoodListHistory.Text = FoodListHistory.Text + "当前用户为:  " + login_usrname + Environment.NewLine; ;
}
catch (Exception)
{
this.Page.ClientScript.RegisterStartupScript(this.GetType(), "", "alert('无法连接数据库!请检查目标数据库文件!');", true);
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: