All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
protected
void
txt_TextChanged(
object
sender, EventArgs e)
{
TextBox txt = (TextBox)sender;
string
t = txt.Text;
int
t1 = Convert.ToInt16(t);
SqlConnection con =
new
SqlConnection(ConfigurationManager.ConnectionStrings[
"NorthwindConnectionString"
].ToString());
String s =
"select FirstName,EmployeeID from Employees where EmployeeID='"
+t1+
"'"
;
con.Open();
SqlDataAdapter dr =
SqlDataAdapter(s, con);
DataTable dt =
DataTable();
dr.Fill(dt);
con.Close();
RadListView lst = (RadListView)txt.FindControl(
"ListBox1"
);
lst.DataSource = dt;
lst.DataBind();
}