B
boomcreation
Hi,
When I load a userControl, I check if I have a variable session.
If my variableSession1 = "A" and do nothing.
but if my variableSession1 = "B", I want clear the html in my control
and write:
"You need to do this or that"
If I use this code:
Current.Session.Abandon()
Current.Response.Write("<TABLE width=""100%"">" & _
"<TR align=""center""><TD><H2>You
need to do this or that"</H2></TD></TR>"
</TABLE>")
Current.Response.End()
all my page is "cleared".
How to clear only the code in my userControl ?
Thanks,
David
When I load a userControl, I check if I have a variable session.
If my variableSession1 = "A" and do nothing.
but if my variableSession1 = "B", I want clear the html in my control
and write:
"You need to do this or that"
If I use this code:
Current.Session.Abandon()
Current.Response.Write("<TABLE width=""100%"">" & _
"<TR align=""center""><TD><H2>You
need to do this or that"</H2></TD></TR>"
</TABLE>")
Current.Response.End()
all my page is "cleared".
How to clear only the code in my userControl ?
Thanks,
David