how to get textbox value in placeholder on code behind?(如何在后面的代码的占位符中获取文本框值?)
问题描述
我创建了一些文本框,我想动态获取它们的值.简要地,我解释一下我的页面:
I created some textbox and I want to get their value dynamically. Briefly, ı explain my page:
我有下拉列表的编号为 1 到 15.当用户选择编号时,我将文本框创建为选定编号.例如;用户选择 3,我创建 3 个文本框,用户在文本框中写一些东西.这是我的代码:aspx端:
I have dropDown list has number 1 to 15.When the user select number and I created textbox as selected number. for example; user select 3 and I create 3 text box and user write something in textbox. Here is My Code: aspx Side:
背后的代码:
我还有保存按钮.
注意:for循环无关紧要(可以删除)我的主要目的是获取文本框值.
Note: for loop doesn't matter (can be removed) My main aim is get the text box value.
如何在btnSave_Click
方法中获取文本框的值?
How to get textbox(es) value in btnSave_Click
method?
推荐答案
下面的代码会帮助你
如果您使用母版页,请使用以下代码
If you are used master page then use below code
这篇关于如何在后面的代码的占位符中获取文本框值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!