G
Guest
Hi!
I need to convert the select statement below from VB ASP to C# ASP.NET. Pls.
help and thanks in advance.
' Create recordset and query
Set rsCHI = Server.CreateObject("ADODB.Recordset")
sCHI = "SELECT a.cust_des1, a.des1 projectName, b.job_no JobNo, b.des1
jobName, b.contract_amt, " _
& "b.est_start_date,b.est_completion_date " _
& "FROM pa_project_master a, pa_job b " _
& "WHERE b.project_no = '" & Request("projectNo") & "' " _
& " And a.project_no = b.project_no " _
& " And b.job_no in (select job_no from pa_security where emp_no = '" &
Session("userempno") & "' "_
& " And project_no= '" & Request("projectNo") & "')"
' Open recordset and run query
rsCHI.Open sCHI,db,,,adCmdText
If rsCHI.EOF Then
Response.Redirect("donf.asp")
End if
Response.Expires = 0
' Set customer session variable
Session("customer") = rsCHI("cust_des1")
detailJobNo = rsCHI("jobNo")
I need to convert the select statement below from VB ASP to C# ASP.NET. Pls.
help and thanks in advance.
' Create recordset and query
Set rsCHI = Server.CreateObject("ADODB.Recordset")
sCHI = "SELECT a.cust_des1, a.des1 projectName, b.job_no JobNo, b.des1
jobName, b.contract_amt, " _
& "b.est_start_date,b.est_completion_date " _
& "FROM pa_project_master a, pa_job b " _
& "WHERE b.project_no = '" & Request("projectNo") & "' " _
& " And a.project_no = b.project_no " _
& " And b.job_no in (select job_no from pa_security where emp_no = '" &
Session("userempno") & "' "_
& " And project_no= '" & Request("projectNo") & "')"
' Open recordset and run query
rsCHI.Open sCHI,db,,,adCmdText
If rsCHI.EOF Then
Response.Redirect("donf.asp")
End if
Response.Expires = 0
' Set customer session variable
Session("customer") = rsCHI("cust_des1")
detailJobNo = rsCHI("jobNo")