Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            GridView1.DataSource = Zi.Get(null).ToList();
            GridView1.DataBind();

            DropDownListTest.DataSource = Zi.Get(null).ToList();
            DropDownListTest.DataBind();
            DropDownListTest.DataTextField  = "Data";
            DropDownListTest.DataValueField = "ID";
            DropDownListTest.DataBind();
        }
Example #2
0
 protected void TextBox2_TextChanged(object sender, EventArgs e)
 {
     TextBox3.Text = Zi.Get(null).Where(p => p.Comments == TextBox2.Text).FirstOrDefault().Data.ToString();
 }