在选项卡中使用文本框创建动态行; e [英] create dynamic row with textboxes in tab;e

查看:41
本文介绍了在选项卡中使用文本框创建动态行; e的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我想创建一个带有文本框的动态行.
例如

我有如下一行:

Dear All,

i want to create dynamic row with a textboxes.
e.g.

i have a row like below:

SR.NO NAME QTY RATE AMOUNT <- these are labels in first row
__ __ ___  ___  __  ____   <- these are textbox in second row  

ADD NEW <- button 

when i press ADD NEW Button, i want to create new row and 6 textboxes.



所以,我怎么能做到这一点..
请帮帮我..

谢谢和问候..
Mitesh



so,how can i achieve this..
please help me..

Thanks and Regards..
Mitesh

推荐答案



您必须创建一个包含此标签和文本框的用户控件.
现在将有一个按钮可以添加新项目.单击该按钮时,必须添加动态用户控件.

要维持动态创建的用户控件的视图状态,请参见以下链接.

在ASP.NET应用程序中为动态创建的控件保留状态 [ ^ ]

谢谢,
Viprat
Hi,

You have to create one user control which contains this Labels and Textboxes.
Now there will be one button to add new item. When you click on that you have to add the user user control dynamic.

To maintain the view state of dynamic created user control see the below link.

Retaining State for Dynamically Created Controls in ASP.NET applications[^]

Thanks,
Viprat


这篇关于在选项卡中使用文本框创建动态行; e的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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