VB to C#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi!

I need to convert from VB ASP to C# ASP.NET.

// the following code is already converted.
' Create recordset and query

Set rsCHI = Server.CreateObject("ADODB.Recordset")

sCHI = "SELECT .....

' Open recordset and run query
rsCHI.Open sCHI,db,,,adCmdText


// the code below is not yet converted
' Set customer session variable
Session("customer") = rsCHI("cust_des1")
detailJobNo = rsCHI("jobNo")

Customer=rsCHI("cust_des1")

Project Name=rsCHI("projectName"
 
Newbie said:
Hi!

I need to convert from VB ASP to C# ASP.NET.

// the following code is already converted.
' Create recordset and query

Set rsCHI = Server.CreateObject("ADODB.Recordset")

sCHI = "SELECT .....

' Open recordset and run query
rsCHI.Open sCHI,db,,,adCmdText


// the code below is not yet converted
' Set customer session variable
Session("customer") = rsCHI("cust_des1")
detailJobNo = rsCHI("jobNo")

Customer=rsCHI("cust_des1")

Project Name=rsCHI("projectName"



Hello Newbie,

That is fairly trivial. I think you really should learn to work with data
using ADO.NET, the .NET Framework, and C# instead of having someone else
convert code for you.

In the time it takes to send and check the newsgroup for this answer you
could have learned how to convert it yourself.

http://msdn.microsoft.com/library/d...ide/html/cpconoverviewofadonet.asp?frame=true

J. Buelna - Houston, TX
 
Back
Top