在ASP.NET中重复节控制 [英] Repeating section control in ASP.NET

查看:69
本文介绍了在ASP.NET中重复节控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Infopath构建表单时,您可以在该部分中定义重复的

部分并粘贴表单字段。我很好奇ASP.NET

是否具有类似的控件,以便使用ASP.NET(而不是Infopath)轻松设计类似的东西?b $ b?我不想认为我会b / b
需要编写所有javascript / dhtml以模仿该功能和

我真的不觉得需要重新发明轮子。

MS是否设计了这样的控件?第三方?


感谢您的时间和帮助!


Christoph

When building a form using Infopath, you can define a repeating
section and stick form fields in that section. I''m curious if ASP.NET
has a similar control to make it easy to design something similar
using just ASP.NET (and not Infopath)? I''d hate to think that I''ll
need to write all the javascript/dhtml to mimic that functionality and
I don''t really feel the need to re-invent the wheel.
Has MS designed such a control? A 3rd party?

Thanks for your time and assistance!

Christoph

推荐答案

这是学习C#作为使用任务的最佳理由之一

JavaScript的语法和语法负担要小得多。

因此我可能需要练习我所宣传的内容,因为我需要一个带有文本框的表格

控件可以多次填写,这似乎是唯一的
$ b $使用客户端

应用程序在XML文档中构建节点的合理方法。


我不喜欢放弃此代码的想法。我不会那么介意

但我有一个竞争对手想要我所拥有的一切所以

我正在考虑在ViewState中构建XML文档

代码可以在服务器上运行,同时仍允许运营商在最终提交之前进行审核和修改。


-

<%= Clinton Gallagher

A / E / C咨询,网页设计,电子商务软件开发

Wauwatosa,密尔沃基美国威斯康星州县

NET csgallagher @ REMOVETHISTEXT metromilwaukee.com

URL http://www.metromilwaukee.com/clintongallagher/


" Christoph Boget" < JC ***** @ yahoo.com>在消息中写道

news:uz ************** @ TK2MSFTNGP11.phx.gbl ...
That''s one of the best reasons for learning C# as the task of using
JavaScript becomes much less of a syntax and grammar burden.

So I may have to practice what I preach as I need a form with a textbox
control that gets filled out multiple times which seems to be the only
reasonable way to build nodes in an XML document using a client-side
application.

I don''t like the idea of giving away this code. I wouldn''t mind so much
but I have a competitor that wants everything I have the way it is so
I was thinking about building he XML document in the ViewState
where the code could run on the server while still allowing the operator
to review and revise before a final commit.

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/


"Christoph Boget" <jc*****@yahoo.com> wrote in message
news:uz**************@TK2MSFTNGP11.phx.gbl...
使用构建表单时Infopath,您可以在该部分中定义重复的
部分和粘贴表单字段。我很好奇ASP.NET
是否具有类似的控件,以便使用ASP.NET(而不是Infopath)轻松设计类似的东西?我不想认为我会需要编写所有的javascript / dhtml来模仿这个功能,而且我真的不觉得有必要重新发明轮子。<有没有MS设计过这样的控件?第三方?

感谢您的时间和帮助!

Christoph
When building a form using Infopath, you can define a repeating
section and stick form fields in that section. I''m curious if ASP.NET
has a similar control to make it easy to design something similar
using just ASP.NET (and not Infopath)? I''d hate to think that I''ll
need to write all the javascript/dhtml to mimic that functionality and
I don''t really feel the need to re-invent the wheel.
Has MS designed such a control? A 3rd party?

Thanks for your time and assistance!

Christoph



Christoph Boget < JC ***** @ yahoo.com>在消息中写道

news:uz **************** @ TK2MSFTNGP11.phx.gbl ...
"Christoph Boget" <jc*****@yahoo.com> wrote in message
news:uz****************@TK2MSFTNGP11.phx.gbl...
当建立一个使用Infopath表单,您可以在该部分中定义重复的
部分和粘贴表单字段。我很好奇ASP.NET
是否具有类似的控件,以便使用ASP.NET(而不是Infopath)轻松设计类似的东西?我不想认为我会需要编写所有的javascript / dhtml来模仿这个功能,而且我真的不觉得有必要重新发明轮子。<有没有MS设计过这样的控件?第三方?
When building a form using Infopath, you can define a repeating
section and stick form fields in that section. I''m curious if ASP.NET
has a similar control to make it easy to design something similar
using just ASP.NET (and not Infopath)? I''d hate to think that I''ll
need to write all the javascript/dhtml to mimic that functionality and
I don''t really feel the need to re-invent the wheel.
Has MS designed such a control? A 3rd party?




您熟悉Repeater和DataList控件吗?他们可以为您重复

任意控件组,每个输入数据项一组。

-

John Saunders

johnwsaundersiii at hotmail



Are you familiar with the Repeater and DataList controls? They can repeat
arbitrary sets of controls for you, one set per input data item.
--
John Saunders
johnwsaundersiii at hotmail


> >使用Infopath构建表单时,您可以定义重复的
> > When building a form using Infopath, you can define a repeating
部分,并在该部分中添加表单字段。我很好奇ASP.NET
是否具有类似的控件,以便使用ASP.NET(而不是Infopath)轻松设计类似的东西?我不想认为我会需要编写所有的javascript / dhtml来模仿这个功能,而且我真的不觉得有必要重新发明轮子。<有没有MS设计过这样的控件?第三方?
section and stick form fields in that section. I''m curious if ASP.NET
has a similar control to make it easy to design something similar
using just ASP.NET (and not Infopath)? I''d hate to think that I''ll
need to write all the javascript/dhtml to mimic that functionality and
I don''t really feel the need to re-invent the wheel.
Has MS designed such a control? A 3rd party?


您熟悉Repeater和DataList控件吗?他们可以为你重复任意一组控件,每个输入数据项一套。


Are you familiar with the Repeater and DataList controls? They can repeat
arbitrary sets of controls for you, one set per input data item.




我已经看过这两个了,是的,他们非常适合重复来自数据源的
数据。但是,我需要的是

,它将重复包含将被发布的用户输入的控件

返回服务器并最终插入数据存储区。这些是b / b
我无法从阅读中找到的两件事(很少)文件

重复控制:


*如何在客户端重复一组空控件。例如,

让我们说我有3个输入文本框。说,''名字'',''中间名'',

''姓氏''。这些文本框出现在用于将人员

添加到数据存储中的表的表单上。我可以显示那些空白的第一行

盒子

没问题。但是我不知道如何制作它以便最终用户可以使它成为另一个空白行,这样他们可以添加多个人

一次性。


*与上述相关,假设有可能,后端代码中将如何引用这些新的

控件。

很容易引用初始控件集,因为我只想通过

名称引用它们。

什么是新的,动态生成的控件的名称(即$ 3 $ b 3个输入文本框)?


以上是我问我原始问题的上下文。

我为不太清楚而道歉。


感谢您的时间和帮助!


Christoph



I''ve looked at both of these and yes, they are really great for repeating
data coming from a datasource. However, what I need is something
that will repeat controls that will contain user input that will be posted
back to the server and ultimately inserted into a datastore. These are
the two things I can''t figure out from reading (what little) documentation
on the repeating control:

* How to repeat a set of empty controls on the client side. For example,
let''s say I have 3 input text boxes. Say, for ''First Name'', ''Middle Name'',
''Last Name''. And these text boxes appear on a form used to add people
to a table in the data store. I can display the first row of those blank
boxes
no problem. But I''m not show how I can make it so that the end user can
make it so that another, blank, row appears so they can add multiple people
in one shot.

* Related to the above, assuming it is possible, how would those new
controls be referenced in the code on the back end. It''s easy enough to
reference the initial set of controls as I would just reference them by
name.
What would be the names of the new, dynamically generated controls (ie
the 3 input text boxes)?

The above is the context with which I was asking my original question.
I apologize for not being more clear.

Thank you for your time and assistance!

Christoph


这篇关于在ASP.NET中重复节控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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