Inline code in .Net application.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I've working with a web app someone else has written. It contains inline code.
For example:

<html><body topmargin="0">
<%If Session("mySession") = "bla" Then%>
// html code in here
<%End if%>
</body></html>

My question is, in .Net, when is appropriate to use inline code? From what
I understand, traditional asp is inline code and .net changed this. (I have
no traditional asp experience) Where are the advantages, disadvantages of
inline code in .Net? Is it ever recommended / frowned upon?

Many thanks, I'll be interested to hear your comments.

CR

Its interesting to see a different approach that I wouldnt have thought of.
 
Back
Top