在数据列表中创建动态文本框&在文件后面的代码中获取文本框的数据 [英] Create Dynamic Textbox In Datalist & Get data of Textboxes In Code Behind File

查看:75
本文介绍了在数据列表中创建动态文本框&在文件后面的代码中获取文本框的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,

我的问题是我想在html按钮单击的数据列表中创建动态文本框吗?在页面后面的代码中获取这些文本框的值.

我尝试但是一个问题是,当我单击html按钮时,javascript函数被调用,这是创建文本框&将其绑定到我放置在数据列表的itemtemplate中的DIV,但是,由于我们具有相同的div ID,因此如果我们按其他单元格中的按钮,则会在第一个div中创建所有文本框.

谢谢.

Hello Friends,

My Problem Is i want to create dynamic textbox in datalist on html button click which is also in datalist & get these textboxes value in code behind page.

I try but, one problem is when i click on html button the javascript function is call which is create textbox & bind it to the DIV which is i placed in itemtemplate of datalist but,due to same id of div the all textboxes created in first div if we press the button in other cell.

Thanks.

推荐答案



您能否附上您的代码,以便我们
看吗?...

问候,

代数
Hi,

Could you please attached you code so that we can
see?...

Regards,

Algem


这篇关于在数据列表中创建动态文本框&在文件后面的代码中获取文本框的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆