【发布时间】:2014-03-01 05:31:39
【问题描述】:
我有一个带有条件的组合框。我想绑定条件,但是当我运行它时,我收到错误End of statement expected。
但是,当我注释掉这些行时,它可以完美运行。
<li>
<select name="account_type">
<option value="I" <% If Request.Form("account_type") = "I" Then Response.Write("SELECTED") End If %> ">Individual</option>
<option value="C" <% If Request.Form("account_type") = "C" Then Response.Write("SELECTED") End IF %>>Corporate</option>
</select>
</li>
我做错了什么? 我正在使用 VB.Net 内联编码。
【问题讨论】:
标签: asp.net vb.net visual-studio-2010 inline-code