易截截图软件、单文件、免安装、纯绿色、仅160KB

asp中的 if then 等于c#中的哪个循环语句?

if  not  rs.eof  then 
  while  not  rs.eof 
  OrderDate=right(trim(rs("InID")),14)    '09110603001 
  'response.Write OrderDate+1    '10011405001
  if  trim(Left(OrderDate,8))=ToDay  then
  GetLastID=OrderDate+1 
 
  if len(GetLastID)=10 then GetLastID="0"&GetLastID
  GetLastID=company_py&right(GetLastID,12) 
  else 
  GetLastID=ToDay+"001" 
  GetLastID=company_py&GetLastID 
  end  if 

  rs.movenext 
  wend 
  else 
  GetLastID=company_py+ToDay+"001" 
  end  if 


这段是asp的代码  怎么用c#来表示?
if(条件){
内容
}else{

}

C# code:

if
{

}



if
else

VB语法,去参考一下VB

C# code:

if (!rs.eof)
{
while(!rs.eof)
{
OrderDate=right(trim(rs("InID")),14) //09110603001
//


相关问答:

asp.net中可输入的下拉框的问题 - .NET技术 / ASP.NET

Imports System.ComponentModel
Imports System.Web.UI
Imports System.Web.UI.Design
Imports System.Web.UI.WebControls
Namespace CBDAspNet.WebControls.HTML
  ''' <summary>
  '' ......

在asp.net里面脚本出错 - .NET技术 / ASP.NET

function CheckOpwd(){//验证用户名
var pwd=document.all.txtOpwd;

var div1=document.getElementById("divPwd");

if (pwd.value=="")
{
......

求一ASP嵌套页代码 - Web 开发 / ASP

A页面
<table width="200" border="1">
  <tr>
  <td>1</td>
  <td>3</td>
  <td><!--#include/top.html#-- ......

ASP伪静态 - Web 开发 / ASP

asp虚拟主机实现伪静态的方法:
1、 重写url参数
Step1: 建立前台文件index.asp,修改url参数形式。由于读取数据库中的记录不是专题的重点,故直接给出:
<!--#include file="config.asp" -->
&l ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号