Help translating VB to C#

Saia2098

New member
Joined
Aug 4, 2003
Messages
1
Hi, I need some help...
Im creating a program (an ASP.NET application in Visual Studio .NET) under C# and I dont know well this language...
I have a DataSet control into the page .aspx that I created. I was thinking using that object like a Recordset in VB.
The program in VB is:


Dim User as Recordset

Set User = OpenRecordSet("USER")

User.Index = "ID"
User.Seek "=", txtUID.Text txtUID is a TextBox in the form
If Not User.NoMatch then
If User.pwd = txtPWD.Text then txtPWD is an other TextBox
OpenPage "home.aspx" this line is pseudo-code
Else
MsgBox "Incorrect password"
End If
Else
MsgBox "Incorrect user ID"
End If
User.Close


this is what I have to translate in C#.
Any ideas will be usefull...

Thanks
 
Back
Top