aspx中的逻辑判断

来源:百度知道 编辑:UC知道 时间:2024/05/17 06:43:52
如果知道变量this.unit_name的值,如何做判断?
<%if this.unit_name="大慧工作室" then %>
<table border="0" width="100%" id="table1">
<tr>
<td>大慧欢迎您</td>
</tr>
</table>
<%else%>
<table border="0" width="100%" id="table2">
<tr>
<td><%=this.unit_name%></td>
</tr>
</table>
<%end if%>
总是不对

It looks you using vb sytain

<%if this.unit_name="大慧工作室" then %>

....你这个是C#?那判断等于是“==”吧 貌似不是“=”吧
C#貌似没有if..then
VB的我就不知道了