Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个母版页,其中有以下代码:
<div class="Version"> <label><%System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();%></label> </div>
但这并没有最终呈现页面上的版本信息。
我相信你在之后缺少一个等号<%:
<%
<div class="Version"> <label><%=System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();%></label> </div>