Using pre-processing directives in ASP.NET

M

Michael Nemtsev [MVP]

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>
 

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

Top