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
//
相关问答:
Imports System.ComponentModel
Imports System.Web.UI
Imports System.Web.UI.Design
Imports System.Web.UI.WebControls
Namespace CBDAspNet.WebControls.HTML
''' <summary>
'' ......
function CheckOpwd(){//验证用户名
var pwd=document.all.txtOpwd;
var div1=document.getElementById("divPwd");
if (pwd.value=="")
{
......
A页面
<table width="200" border="1">
<tr>
<td>1</td>
<td>3</td>
<td><!--#include/top.html#-- ......
asp虚拟主机实现伪静态的方法:
1、 重写url参数
Step1: 建立前台文件index.asp,修改url参数形式。由于读取数据库中的记录不是专题的重点,故直接给出:
<!--#include file="config.asp" -->
&l ......