VB to C#

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"
 
J

J. Buelna - Houston, TX

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top