03 2012 档案
摘要:MyOrders前台: 1 <table width="100%" border="1" cellspacing="1" cellpadding="0"> 2 <tr> 3 <td colspan="6" align="center" style="font-size: 20pt; color: #003399"> 4 <asp:Label ID="Label1" runat="ser
阅读全文
摘要:1. 弹出窗口,再跳转页面的写法:Response.Write("<Script Language='JavaScript'>window.alert('对不起,不能显示您的个人信息!');window.location.href='Default.aspx';</script>");2. 注册时用CustomValidator控件验证用户名是否已经存在 前台代码:<asp:CustomValidator ID="CustomValidator1" runat="se
阅读全文
摘要:方法中的添加参数写法不好,要按照Users类里面的方法来写。这样就不用管参数的顺序了。返回的DataTable用于作为绑定Repeater控件的数据源 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using System.Data.SqlClient; 6 using System.Data; 7 8 /// <summary> 9 ///Employees 的摘要说明 10 /// </summary> 11 public
阅读全文
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using System.Data.SqlClient; 6 using System.Data; 7 8 /// <summary> 9 ///Users 的摘要说明 10 /// </summary> 11 public class Users 12 { 13 //声明7个私有字段 14 private int userID; 15 private stri...
阅读全文
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using System.Data.SqlClient; 6 using System.Data; 7 8 /// <summary> 9 ///DBHelper 的摘要说明 10 /// </summary> 11 public class DBHelper 12 { 13 private static DBHelper _instance; 14 protected...
阅读全文