Display variable on asp.net page
Posted on 2004-09-22
I am trying to show text on the webpage if the value of edit = 1 but i get an error:
Name 'edit' is not declared.
with this code:
<% If edit = 1 Then %>
<% End If %>
from a previous question, from ImSoLost
Why not do this server side? something like this
dim edit as integer
If Edit = 1 then
label1.text = "whatever you want to say on the page"
label1.text = "Whatever you say for this condition"