Conditional Compilation Directives in aspx file?

Discussion in 'ASP .Net' started by Praveen, Apr 12, 2005.

  1. Praveen

    Praveen Guest

    Hi,

    Is there some kind of support for "Conditional Compilation Directives"
    in the aspx file?

    I want to enclose the Register tag as follows:
    #if DOTNET10
    <%@ Register TagPrefix="sfwg" Namespace="CustomNameSpace"
    Assembly="CustomAssembly1.0"%>
    #else
    <%@ Register TagPrefix="sfwg" Namespace="CustomNameSpace"
    Assembly="CustomAssembly1.1"%>
    #endif

    And of course be able to define the "DOTNET10" directive somewhere
    (maybe in the web.config file).

    TIA,
    Praveen
    Praveen, Apr 12, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Praveen Ramesh
    Replies:
    2
    Views:
    2,150
    Steven Cheng[MSFT]
    Apr 13, 2005
  2. Adrian
    Replies:
    1
    Views:
    384
    Eliyahu Goldin
    Mar 12, 2006
  3. Alec S.
    Replies:
    10
    Views:
    10,091
    Alec S.
    Apr 16, 2005
  4. Theon Greyjoy

    Preprocessor directives in codebehind file

    Theon Greyjoy, Oct 6, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    1,507
    bruce barker \(sqlwork.com\)
    Oct 6, 2006
  5. Replies:
    2
    Views:
    252
Loading...

Share This Page