cafferm
asked on
asp conversion to c# - Urgent
Hi
I am a newbie to c# and really urgently need this piece of code which is embeded into a web page converted to c#
thanks
<%
dim i
sql ="SELECT parent,mName,mLink,menuord er from tblMenu where parent=1 ORDER BY menuorder ASC"
Set headerrs = Server.CreateObject("ADODB .Recordset ")
headerrs.Open sql, conn, 3, 3
i=0
If (headerrs.RecordCount > 0) Then
while not headerrs.eof
Response.write("oCMenu.mak eMenu('sub 0" & i & "','top0','" & headerrs.fields("mName") & "','" & headerrs.fields("mLink") & "')" & vbcrlf)
i=i+1
headerrs.movenext
wend
end if
headerrs.close
%>
I am a newbie to c# and really urgently need this piece of code which is embeded into a web page converted to c#
thanks
<%
dim i
sql ="SELECT parent,mName,mLink,menuord
Set headerrs = Server.CreateObject("ADODB
headerrs.Open sql, conn, 3, 3
i=0
If (headerrs.RecordCount > 0) Then
while not headerrs.eof
Response.write("oCMenu.mak
i=i+1
headerrs.movenext
wend
end if
headerrs.close
%>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Glad to help you Matt :-)
ASKER
Matt