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
//
相关问答:
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#-- ......
protected void btnLogin_Click(object sender, EventArgs e)
{
SqlConnection conn = new SqlConnection("Server = (local);user id = sa;pwd = 1;database = Login");
&nb ......
C# code:
SqlConnection conn = CsDB.sqlcon();
SqlDataAdapter da = new SqlDataAdapter("select fwCoding from bjmuma_fwCoding where OrderNumber='" + Order + & ......
万网的服务器支持伪静态的,直接用rewrite在web.config文件写规则,也不用安装组件就可以实现伪静态,但是在时代互联服务器就用不了了,咨询它的客服,他说他们服务器(基本型C)不支持伪静态的.请问一下各位我该用什么方法 ......