Posted on Jan 18, 2012 (permalink)
Reply
Posted on Jan 19, 2012 (permalink)
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();
}
Back to Top
[ ASP.NET ListView Features | Documentation | Demos | Telerik TV | Self-Paced Trainer | Step-by-step Tutorial ]
UI controls for ASP.NET AJAX, MVC, WPF, Silverlight, Windows Forms and Windows Phone. Visual Studio productivity tools. Reporting and data layer solutions.
HTML5 / JavaScript tools for Web and Mobile applications
Functional, Performance, Load and Mobile Software Testing
CMS, Mobile Web, Ecommerce, Emarketing, Social Media
Project management software inspired by Agile best practices
It seems you haven't bookmarked any pages. Fix that by clicking the button below