• <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 控件.

        How to dynamically generate a TextBox control.(如何动态生成 TextBox 控件.)
          <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 控件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  How to keep the Text of a Read only TextBox after PostBack()?(PostBack()之后如何保留只读文本框的文本?)
                  Winforms Textbox - Using Ctrl-Backspace to Delete Whole Word(Winforms 文本框 - 使用 Ctrl-Backspace 删除整个单词)
                  C# - Add button click events using code(C# - 使用代码添加按钮单击事件)
                  Multi-color TextBox C#(多色文本框 C#)
                  How can i set the caret position to a specific index in passwordbox in WPF(如何将插入符号位置设置为 WPF 密码框中的特定索引)
                  C# Numeric Only TextBox Control(C# 纯数字文本框控件)

                  <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>

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

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