J
[ J ] a [ Y ]
Guest
Hi guys. I am just doing a little test in ASP.NET and I'm trying to access SQL data source results for a comparison. Lets say for example my SQL data source object contains the results of the following query:
select * from dbo.mytable
where thisfield = thisvalue
now lets assume this query returns 5 rows, each row containing 4 fields. What would I need to do in order to say something like:
if sqldatasource1.rowX, fieldY = "some value" then
do this
end if
I cant seem to find anything that explains that. Thanks all
so I'm guessing that we cant perform such checking simply by accessing an attribute of the existing ASP.NET web controls such as the SQL data source or one of the data views? lol I guess I'll need to implement the code to retrieve the data myself then. Real bugger though
select * from dbo.mytable
where thisfield = thisvalue
now lets assume this query returns 5 rows, each row containing 4 fields. What would I need to do in order to say something like:
if sqldatasource1.rowX, fieldY = "some value" then
do this
end if
I cant seem to find anything that explains that. Thanks all
so I'm guessing that we cant perform such checking simply by accessing an attribute of the existing ASP.NET web controls such as the SQL data source or one of the data views? lol I guess I'll need to implement the code to retrieve the data myself then. Real bugger though