|
-
Dec 15th, 2003, 03:48 PM
#1
Thread Starter
New Member
How do I turn the results of an SQL query into Strings and Integers?
Hi guys,
This was easy enough to do in java....
String UserType == NameOfQuery.getString(X);
Although I know how to use a DataReader in VB code for my ASP.NET website to check to see if a record exists, I would really like to be able to use a DataSet so that I can convert a returned field from a record into a String or an Integer which can then be used in my page.
When a user is successfully logged into my website, I'd like the program to be able to look in the tblUsers table and if a field name called 'UserType' contains the String value 'Administrator' to then enable extra features to be available.
I know how to do the latter, but it's how I can give a String variable the returned 'UserType' that I'm unsure of!!!
Could someone please give me a hand with this !!
Thanks,
Si
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|