Prepare for your Next Interview
This is a discussion on Fetch the details about particular person from database within the VB.NET forums, part of the Software Development category; I want to fetch the details about particular person from database by giving input in VB. For eg, If i give a name like 'Susi' in textbox of vb, it ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
Fetch the details about particular person from database
I want to fetch the details about particular person from database by giving input in VB.
For eg, If i give a name like 'Susi' in textbox of vb, it should fetch and display the corresponding details from database to VB. Can you just clarrify my doubts as soon as possible. |
| Sponsored Links |
|
|||
|
Re: Fetch the details about particular person from database
I am sending one example code for u just try that it will work...first import the System.data.sqlclient
1. Place one textbox and one datagrid in form 2. Dim cn as new SqlConnection("connection string") Dim da as new SqlDataAdapter("select * from tablename where columname='TextBox1.Text' ",cn) Dim ds as new DataSet da.fill(ds,"tablename") DataGrid1.DataSource=ds.tables("tablename") I hope it will work if not give me a reply and post what errors u r getting....... |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Details of emp having the 788th highest salary | Geek_Guest | SQL | 8 | 01-24-2008 09:57 AM |
| Traits of a Self-Confident Person | Lokesh M | Personality Development | 0 | 04-17-2007 12:07 PM |
| L&T Placement Details 10th April 2007 | Lokesh M | Interviews | 0 | 04-13-2007 12:04 PM |
| Fetch a new record inserted using MM01 | Geek_Guest | SAP R/3 | 0 | 04-13-2007 08:43 AM |
| Details about Firewall | timmy | HTML & CSS | 2 | 07-20-2006 12:01 PM |