Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DataTable dt  = rules.SelectAllRules();
         DataRow[] row = dt.Select();
         foreach (DataRow rs in row)
         {
             FreeTextBox1.Text = rs["content"].ToString();
         }
     }
 }
Exemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         rule      rules = new rule();
         DataTable dt    = rules.SelectAllRules();
         DataRow[] row   = dt.Select();
         foreach (DataRow rs in row)  //将检索到的数据逐一,循环添加到Listbox1中
         {
             TextBox1.Text = rs["content"].ToString();
         }
     }
 }