Using pre-processing directives in ASP.NET

  • Thread starter Thread starter damiensawyer
  • Start date Start date
Hello (e-mail address removed),

these directives works only in code-behind file. you can't use then in ASPX
markup. everything you can do is move codebehind into aspx files and use
directives there

---
WBR,
Michael Nemtsev [Microsoft MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


d> Hi,
d>
d> I'm trying to find away to conditionally compile sections of code in
d> a
d> web page using #define #undef.
d> ( see http://msdn.microsoft.com/en-us/library/aa691094(VS.71).aspx)
d> I can't seem to figure out where/how to do it in an ASPX file (non
d> code behind). Can someone please point me in the right direction?
d>
d> Thanks in advance,
d>
d> Damien
d>
 
Back
Top