Originariamente inviato da sgaibarre
sto cercando di passare da asp ad asp.net ma trvo difficolta nello scorrere in dati di un recorset ed individuare se esiste o no l'informazione che cerco!!!

aiutatemi se possibile
se già conosci ado, passare ad ado.net è facile...più o meno uguale...l'unica cosa da tenere presente è che è stato rimosso il MoveNext ed è stato sostituito con Read().

Esempietto in C#:

codice:
OleDbConnection objConnect;
				OleDbDataReader objDataReader;
				// Select string 
				String strSelect = "SELECT ID, Psw FROM Users WHERE ID = " + ID;
				String retValue = "";

				// create a new Connection object using the connection string
				objConnect = new OleDbConnection(ConnString);

				// open the connection to the database
				objConnect.Open();

				// create a new Command using the connection object and select statement
				OleDbCommand objCommand = new OleDbCommand(strSelect, objConnect);

				// execute the SQL statement against the command to fill the DataReader
				objDataReader = objCommand.ExecuteReader();

				if (!objDataReader.Read()) 
				{
					// Record missing				}
				retValue = (String) objDataReader["StringValue"];

				objDataReader.Close();
				objConnect.Close(); 

				return retValue;
se usi sql devi sostituire tutti gli oledb con sql...