• <tfoot id='8ImfD'></tfoot>
    <i id='8ImfD'><tr id='8ImfD'><dt id='8ImfD'><q id='8ImfD'><span id='8ImfD'><b id='8ImfD'><form id='8ImfD'><ins id='8ImfD'></ins><ul id='8ImfD'></ul><sub id='8ImfD'></sub></form><legend id='8ImfD'></legend><bdo id='8ImfD'><pre id='8ImfD'><center id='8ImfD'></center></pre></bdo></b><th id='8ImfD'></th></span></q></dt></tr></i><div id='8ImfD'><tfoot id='8ImfD'></tfoot><dl id='8ImfD'><fieldset id='8ImfD'></fieldset></dl></div>
    • <bdo id='8ImfD'></bdo><ul id='8ImfD'></ul>

  • <small id='8ImfD'></small><noframes id='8ImfD'>

  • <legend id='8ImfD'><style id='8ImfD'><dir id='8ImfD'><q id='8ImfD'></q></dir></style></legend>

        如何在服务器控件属性中使用 ASP.NET &lt;%= 标签?

        How to use ASP.NET lt;%= tags in server control attributes?(如何在服务器控件属性中使用 ASP.NET lt;%= 标签?)
        <i id='fAOTj'><tr id='fAOTj'><dt id='fAOTj'><q id='fAOTj'><span id='fAOTj'><b id='fAOTj'><form id='fAOTj'><ins id='fAOTj'></ins><ul id='fAOTj'></ul><sub id='fAOTj'></sub></form><legend id='fAOTj'></legend><bdo id='fAOTj'><pre id='fAOTj'><center id='fAOTj'></center></pre></bdo></b><th id='fAOTj'></th></span></q></dt></tr></i><div id='fAOTj'><tfoot id='fAOTj'></tfoot><dl id='fAOTj'><fieldset id='fAOTj'></fieldset></dl></div>

        <small id='fAOTj'></small><noframes id='fAOTj'>

        • <bdo id='fAOTj'></bdo><ul id='fAOTj'></ul>
            <tbody id='fAOTj'></tbody>
            <tfoot id='fAOTj'></tfoot>

                1. <legend id='fAOTj'><style id='fAOTj'><dir id='fAOTj'><q id='fAOTj'></q></dir></style></legend>

                  本文介绍了如何在服务器控件属性中使用 ASP.NET &lt;%= 标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  这行得通:

                  <span value="<%= this.Text %>" />
                  

                  这不起作用:

                  <asp:Label Text="<%= this.Text %>" runat="server" />
                  

                  这是为什么呢?

                  如何使第二种情况正常工作,即将标签的文本设置为文本"变量的值?

                  How can I make the second case work properly, i.e., set the label's text to the value of the "Text" variable?

                  推荐答案

                  不知道如何标记,但这有点重复.查看此线程.

                  Not sure how to mark this as such, but this is a bit of a duplicate. See this thread.

                  我认为将代码嵌入到您的标记中不会真正使您的标记更清晰或更优雅.

                  I don't think embedding code in to your markup will really make your markup any clearer or more elegant.

                  这篇关于如何在服务器控件属性中使用 ASP.NET &lt;%= 标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Multicast delegate weird behavior in C#?(C# 中的多播委托奇怪行为?)
                  How delegates work (in the background)?(代表如何工作(在后台)?)
                  Func Delegate vs Function(函数委托与函数)
                  Checking a MethodInfo against a delegate(针对委托检查 MethodInfo)
                  How to get the instance of a referred instance from a lambda expression(如何从 lambda 表达式中获取引用实例的实例)
                  How to create a delegate to an instance method with a null target?(如何为具有空目标的实例方法创建委托?)
                    <tbody id='iavxx'></tbody>

                    <tfoot id='iavxx'></tfoot>

                      <legend id='iavxx'><style id='iavxx'><dir id='iavxx'><q id='iavxx'></q></dir></style></legend>
                      <i id='iavxx'><tr id='iavxx'><dt id='iavxx'><q id='iavxx'><span id='iavxx'><b id='iavxx'><form id='iavxx'><ins id='iavxx'></ins><ul id='iavxx'></ul><sub id='iavxx'></sub></form><legend id='iavxx'></legend><bdo id='iavxx'><pre id='iavxx'><center id='iavxx'></center></pre></bdo></b><th id='iavxx'></th></span></q></dt></tr></i><div id='iavxx'><tfoot id='iavxx'></tfoot><dl id='iavxx'><fieldset id='iavxx'></fieldset></dl></div>

                        • <small id='iavxx'></small><noframes id='iavxx'>

                          • <bdo id='iavxx'></bdo><ul id='iavxx'></ul>