显示是否基于会话var [英] Show if based on session var
问题描述
你好,
我试图只根据变量显示部分页面,我有两个
会话变量 -
会话(EMPLOYEEMAXUSERS)
会话(EMPLOYERUSERS)
现在我的''我想做的是 -
ShowIf Session(" EMPLOYERUSERS")<会话(EMPLOYERMAXUSERS)
我不能让这个工作,但是......任何想法输入都会真的很好。
赞赏。 />
谢谢
Hi there,
I''m trying to only show part of my page based on a variable, I have two
Session Variables -
Session("EMPLOYEEMAXUSERS")
Session("EMPLOYERUSERS")
Now what I''m trying to do is -
ShowIf Session("EMPLOYERUSERS") < Session("EMPLOYERMAXUSERS")
I can''t get this to work though,.. Any ideas input would be really
appreciated.
Thanks
推荐答案
=?Utf-8?B?R1ROMTcwNzc3?=写于2008年7月7日
microsoft.public.inetserver.asp.general:
=?Utf-8?B?R1ROMTcwNzc3?= wrote on 07 jul 2008 in
microsoft.public.inetserver.asp.general:
ShowIf Session(" EMPLOYERUSERS")<会话(EMPLOYERMAXUSERS)
ShowIf Session("EMPLOYERUSERS") < Session("EMPLOYERMAXUSERS")
如果两个值都是[可转换为]数值,则很简单:
< ;%
if + Session(" EMPLOYERUSERS")< +会话(EMPLOYERMAXUSERS)然后
%>
< div>嗨< / div>
<%
else
%>
< div> Ho< / div>
<%
结束如果
%>
-
Evertjan。
荷兰。
(请在我的电子邮件地址中将x'变为点数)
If both values are [convertible to] numeric values it is simple:
<%
if +Session("EMPLOYERUSERS") < +Session("EMPLOYERMAXUSERS") then
%>
<div>Hi</div>
<%
else
%>
<div>Ho</div>
<%
end if
%>
--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)
Evertjan。写道:
Evertjan. wrote:
=?Utf-8?B?R1ROMTcwNzc3?=写于2008年7月7日在
microsoft.public.inetserver.asp .general:
=?Utf-8?B?R1ROMTcwNzc3?= wrote on 07 jul 2008 in
microsoft.public.inetserver.asp.general:
> ShowIf Session(" EMPLOYERUSERS")<会话(EMPLOYERMAXUSERS)
>ShowIf Session("EMPLOYERUSERS") < Session("EMPLOYERMAXUSERS")
如果两个值都是[可转换为]数值,则很简单:
< ;%
if + Session(" EMPLOYERUSERS")< +会话(EMPLOYERMAXUSERS)然后
%>
< div>嗨< / div>
<%
else
%>
< div> Ho< / div>
<%
结束如果
%>
If both values are [convertible to] numeric values it is simple:
<%
if +Session("EMPLOYERUSERS") < +Session("EMPLOYERMAXUSERS") then
%>
<div>Hi</div>
<%
else
%>
<div>Ho</div>
<%
end if
%>
Evertjan,我之前从未见过这个快捷方式,还有其他人喜欢它吗? br />
Steve
Evertjan, I have never seen this shortcut before, are there others like it?
Steve
Dooza于2008年7月7日在microsoft.public.inetserver.asp.general写道:
Dooza wrote on 07 jul 2008 in microsoft.public.inetserver.asp.general:
Evertjan。写道:
Evertjan. wrote:
> =?Utf-8?B?R1ROMTcwNzc3?=写于2008年7月7日在
microsoft.public.inetserver.asp.general :
>=?Utf-8?B?R1ROMTcwNzc3?= wrote on 07 jul 2008 in
microsoft.public.inetserver.asp.general:
>> ShowIf Session(" EMPLOYERUSERS")<会话(EMPLOYERMAXUSERS)
>>ShowIf Session("EMPLOYERUSERS") < Session("EMPLOYERMAXUSERS")
如果两个值都是[可转换为]数值,则很简单:
<%
如果+会话(EMPLOYERUSERS)< +会话(EMPLOYERMAXUSERS)然后
%>
< div> Hi< / div>
<%
else
%>
< div> Ho< / div>
<%
结束如果
%>
If both values are [convertible to] numeric values it is simple:
<%
if +Session("EMPLOYERUSERS") < +Session("EMPLOYERMAXUSERS") then
%>
<div>Hi</div>
<%
else
%>
<div>Ho</div>
<%
end if
%>
Evertjan,I之前从未见过这个快捷方式,还有其他人喜欢吗?
Evertjan, I have never seen this shortcut before, are there others
like it?
什么的快捷方式?还有什么?
您是否尝试过我的代码?
-
Evertjan。
荷兰。
(请将我的电子邮件地址中的x'变为点数)
Shortcut for what? What others?
Did you try my code?
--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)
这篇关于显示是否基于会话var的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!