开发者

how to chang visibility in asp with vbscript

开发者 https://www.devze.com 2023-02-05 21:52 出处:网络
How to button visible true or false in ASP with vbscript <textarea <% if Session(\"a\") = \"a\" %> class=开发者_C百科\"a\" <% else %> class=\"b\" <% end if %>

How to button visible true or false in ASP with vbscript

<textarea <% if Session("a") = "a" %> class=开发者_C百科"a" <% else %> class="b" <% end if %>

<input type="button" id="clonebutton" value="clone" />

if session is a, button is visible else button is invisible. How can I do for that?


Your code is not fully formed, and I'm not sure what that textarea is doing there, but simply put this around your button:

<%If Session("a") = "a" Then%>
   <input type="button" id="clonebutton" value="clone />
<%End If%>

You probably shouldn't have session variables floating around with un-descriptive names such as "a", but maybe you were just making an example.

0

精彩评论

暂无评论...
验证码 换一张
取 消