Click here to Skip to main content
13,139,682 members (41,046 online)
Rate this:
Please Sign up or sign in to vote.
See more:
i have design application

UserID TextBox1


database as follows;

UserID Name Address
1 A Chennai
2 B Delhi
3 C Mumbai

in run mode in textbox1 when i type partiuclar userid and click the submit button the particular data to be displayed in the grid view.please send the me.
Posted 23-Nov-12 5:10am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

here I'm using SQL Database.. so make the connection as per this..

string query="select * from table_name where UserID='"+userID+"'";
SqlDataAdapter da=new SqlDataAdapter(query, here your connection object or connection string);
DataTable dt=new DataTable();
DataGridView1.DataBind();     // optional

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.170915.1 | Last Updated 23 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100