How i can associate a datagrid to an active connection in aspx.

In vb6 write in this mode :

Dim RS As New ADODB.Recordset
RS.DataMember = "SS"
Grid.DataMember = "SS"
RS.Open "Select * from from ABC", Connection, adOpenKeyset, adLockOptimistic
Set Grid.DataSource = RS

When i try in aspx thi mode not work ?

Thenks

Sergio Nasso