hi I am currently using VS.NET 2003 and I have a form which has 3-4 text boxes nad a submit button. What i want is to querry the text given in text box with the attributes given in a database in some server nad want to display the results of that querry in a report.

create a select sql command with the values from textboxes as parameters. then create a dataadapter and assign the command to dataadapter's select command. Finally create a datatable and fill it with the adapters fill method, and set the datagrid's datasource to your datatable and call the bind method. It is much easier to do the same thing if you use vs 2005 or vs 2008.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.