基础问题 C#里的?:改成asp里怎么写?
这行代码改成asp 改怎么写呢 ,我只会用if end if写, 不知道asp里的?:这个判断语法是什么,呵呵问题很简单 基础问题了~
C# code:
isPage = Request["pg"] == null ? 1 : Int32.Parse(Request["pg"].ToString())
if(Request["pg"].ToString() == null )
{
isPage=1;
}
else
{
Int32.Parse(Request["pg"].ToString());
}
VBScript code:
isPage = iif(isnull(Request["pg"]), 1 , cint(Request["pg"]))
VBScript code:
dim str,isPage
str=trim(request("pg"))
if str="" then
isPage=1
else
isPage=cint(str)
end if
iif...ASP没有自己的语言,是用VBScript...
相关问答:
最近在做个网上商城,购物车模块,没有做过,麻烦各位帮忙说下大致说下思路,能发一份源码更好。小弟先谢过各位了;
QQ:413763818;
eamil:swebook@126.com
网上一大堆!
www.51aspx.com
去下 ......
我想打印数据库里面读取出来的多条数据内容,实现批量打印
先导入excel或者word,然后在打印
或者购买web打印控件
使用acitvex打印。如果不需要选择属性,设置属性,就不需要商业的了。
<style media= ......
本人不会asp,报错了,请大家帮忙看看。
代码如下:
<%
dim keyword_Name,keyword_YJ,keyword_RQ
if rs("QS_PASS_1_name")<>"0,0" then
keyword_Name=split(rs("QS_ ......
protected void btnLogin_Click(object sender, EventArgs e)
{
SqlConnection conn = new SqlConnection("Server = (local);user id = sa;pwd = 1;database = Login");
&nb ......