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

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

        <legend id='JX7aj'><style id='JX7aj'><dir id='JX7aj'><q id='JX7aj'></q></dir></style></legend>
          <bdo id='JX7aj'></bdo><ul id='JX7aj'></ul>
        <tfoot id='JX7aj'></tfoot>

        如何动态生成 TextBox 控件.

        时间:2023-06-10
          <bdo id='JrVGZ'></bdo><ul id='JrVGZ'></ul>

            <tfoot id='JrVGZ'></tfoot>

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

                <i id='JrVGZ'><tr id='JrVGZ'><dt id='JrVGZ'><q id='JrVGZ'><span id='JrVGZ'><b id='JrVGZ'><form id='JrVGZ'><ins id='JrVGZ'></ins><ul id='JrVGZ'></ul><sub id='JrVGZ'></sub></form><legend id='JrVGZ'></legend><bdo id='JrVGZ'><pre id='JrVGZ'><center id='JrVGZ'></center></pre></bdo></b><th id='JrVGZ'></th></span></q></dt></tr></i><div id='JrVGZ'><tfoot id='JrVGZ'></tfoot><dl id='JrVGZ'><fieldset id='JrVGZ'></fieldset></dl></div>
                1. <legend id='JrVGZ'><style id='JrVGZ'><dir id='JrVGZ'><q id='JrVGZ'></q></dir></style></legend>
                    <tbody id='JrVGZ'></tbody>
                  本文介绍了如何动态生成 TextBox 控件.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如何在运行时通过单击按钮动态生成 TextBox 控件?对于每个按钮单击,我想创建一个 TextBox 控件以及相应的动态标签.我想使用 C# 语言在 ASP.NET 中执行此操作.

                  How does one dynamically generate a TextBox control at run-time as a result of a button click? For each button click, I would like to create a TextBox control along with corresponding dynamic labels. I would like to do this within ASP.NET using the C# language.

                  推荐答案

                  TextBox txt = new TextBox();
                  txt.ID = "textBox1";
                  txt.Text = "helloo";
                  form1.Controls.Add(txt);
                  
                  Label lbl = new Label();
                  lbl.Text = "I am a label";
                  form1.Controls.Add(lbl);
                  

                  这篇关于如何动态生成 TextBox 控件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:输入按钮不提交表单(仅限 IE)ASP.NET 下一篇:只允许文本框中的特定字符

                  相关文章

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

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

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

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