Separating html from code

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
%>
 
C

Curt_C [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,147
Latest member
CarenSchni
Top