为什么<%=%>在http里面但不在https里面

时间:2015-10-29 15:39:08

标签: asp.net

<%= 'test1' %>在http中显示test1,但如果我使用https,则会看到XXXX。

区别在哪里?

1 个答案:

答案 0 :(得分:1)

Strange, it should not work in both cases, you should get compiler error: CS1012: Too many characters in character literal.

You should use double quotes, like this:

<%= "test1" %>

I can't see how uri scheme can change that, and there should be no difference.