check record and then run second query to display in data grid

M

mamun

Hi All,

I am doing it for the first time in C# (using Visual Studio 2005),

First I need to check if data exists in a table for a variable. If so
then run the second query and display the resultsets in Gridview.

For ex., in the form I am entering contract id and running the query
for that contract id. If results found then use that contract id to
run the second query and show the results in gridview.

My question is how I can accomplish that?
I do appreciate your help.

Thanks a ton in advance.
best regards,
Mamun
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top