#DEBUG Preprocessor statements in ASPX page

前端 未结 8 1107
滥情空心
滥情空心 2020-12-29 22:09

I\'m trying to use a preprocessor directive in an ASPX page, but the page doesn\'t recognize it. Is this just something I can\'t do?

Background: I\'m trying to inclu

8条回答
  •  忘掉有多难
    2020-12-29 23:03

    I don't think you can have preprocessor directives in the aspx unfortunately.

    A simpler way to go is to simply have a property in your code-behind that feeds in the jQuery URL, then you can set preprocessor directives to declare it. Or if you'd prefer to keep the URL in the code-infront you could use a Literal control and toggle their visibility in the code-behind based on the processor directives.

    For example:

    code-infront:

    
    
    
                                     
                  
提交回复
热议问题