Hello
2 quick questions
I have a database (SQLExpress) to populate my web page with some products.
Some times, I want to perform an if else function to the result (which seems to be very difficult in asp.net for some reason - compared to asp.classic).
The code works fine
Is there a better way to do this? Or is this the correct way?
Second question is:
also works. Please correct my terminology but the ds parameters(?) Tables, Rows and Count all belong to ds. How does any one know this? How would I know what else I can use with ds? I have viewed the microsoft website to try to work out what I can and can't apply and have gotten no where! Is there a site which says if you use XX, then you can use the following parameters...
Thanks
Dave
2 quick questions
I have a database (SQLExpress) to populate my web page with some products.
Some times, I want to perform an if else function to the result (which seems to be very difficult in asp.net for some reason - compared to asp.classic).
The code works fine
Code:
string PN = (Convert.ToString(ds.Tables["B2B"].Rows[0]["PartNumber"]));
Second question is:
Code:
ds.Tables["B2B"].Rows.Count;
Thanks
Dave
Comment