当我编写的条件在 html 表单中不为真时,我需要使用 C# 语言在我的 aspx 页面中显示一条消息
有人吗?
最佳答案
绝对最简单和最肮脏的方法是:-
// YourCondition defined as public property of the .aspx page
<% if ( YourCondition != true ) { %>
Your conditional text.
<% } %>
关于asp.net - 如何在 WebForm 中使用 C# 显示消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13460559/