ado.net
Hi, I am starting to use ado.net and i am totally lost. I need to retrieve values from the db and enter those values into a label and a textbox. Using classic ado i wrote something like rs.open ("select *...where ad_id="&ad_id) name=rs("name").value label1.text=name. Don't know how to do it in ado.net. Can someone please help me? Thanks This is what i have so far in aspx.vb Imports System.Data.SqlClient Imports YTools.Constants Private oConn As New SqlConnection(Constants.SQLProviderConnectionString) Private cmd As SqlCommand ad_id = Request.QueryString("ad_id") Dim myDR As SqlDataReader cmd.CommandText = "SELECT * FROM ads,users WHERE AD_ID = " & ad_id & " AND ADS.AD_POSTER = USERS.U_ID" oConn.Open() myDR = myCommand.ExecuteReader