Separating html from code

  • Thread starter Thread starter Manuel
  • Start date Start date
M

Manuel

If I have a form which I only want to display if a certain variable in
Test.aspx.vb becomes True, how can I do that without using the old method
inside the Test.aspx code:

<%
If bolVar = True then
%>
<form id=myFrm name=myFrm action='<%=strTargetPage%>'>
</form>
<%
End If
%>
 
Why not do this in the button_click event? I mean leave the action alone, do
your work in the event upon postback and rediect/pass the info acordingly.
 
Back
Top