可以将ASP转发器控件用于接受输入,以便在ASP.net Web应用程序中输入多个记录(购买的商品). [英] can ASP repeater control be used to take inputs for entering multiple records (items purchased ) in ASP.net web appliction.
问题描述
我不知道该如何放置,但是我在一个Web应用程序中工作,必须保存客户购买的每件商品的记录.
我想为此使用中继器.
第一个字段应该是包含所有可用产品列表的下拉列表,
第二个是用于输入PRICE的文本框,第三个是用于否的文本框.选定的项目.
客户可能会购买各种产品,我想一次将所有购买记录插入到我的表中.如果可以,Repeater控件可以满足我的要求吗?
I dont know how to put this, but i am working in a webappication where i have to keep records of each items purchased by the CUSTOMER.
I am thiking about using repeaters for this purpose.
the first field should be dropdownlist with list of all PRODUCTS available,
second is textbox for entering PRICE and third will be for textbox for no. of selected items.
The customer may buy various Products and I want to insert all the purchase records at once to my table. Can the Repeater control fulfill my requirement if yes how?
and if not can u please suggest some other methods.
推荐答案
您可以使用Gridview
,使用gridview
的好处是您可以轻松插入更新和删除.
您可以通过在Gridview
中包含TemplateField
来实现.
谢谢
Ashish
you can useGridview
, benefit of usinggridview
is you can easily insert update and delete.
You can implement by havingTemplateField
in aGridview
.
Thanks
Ashish
是否需要在网页上放置单个数据显示控件?如果放置DropDownList
和GridView
是否可以接受?我的意思是说,放置DropDownList
,将其填充为Customer ID/Name
,在选择任何Customer
时,将相应地填充GridView
.现在,您可以轻松地将GridView
用于Add/Edit/Delete
用途.
Is it the requirement that you need to place a single data display control on your web page? Will it be acceptable if you place aDropDownList
and aGridView
? I meant to say, place aDropDownList
, fill it willCustomer ID/Name
, on selection of anyCustomer
, fill theGridView
accordingly. Now you can easily useGridView
forAdd/Edit/Delete
purposes.
这篇关于可以将ASP转发器控件用于接受输入,以便在ASP.net Web应用程序中输入多个记录(购买的商品).的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!