可以将ASP转发器控件用于接受输入,以便在ASP.net Web应用程序中输入多个记录(购买的商品). [英] can ASP repeater control be used to take inputs for entering multiple records (items purchased ) in ASP.net web appliction.

查看:47
本文介绍了可以将ASP转发器控件用于接受输入,以便在ASP.net Web应用程序中输入多个记录(购买的商品).的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道该如何放置,但是我在一个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 use Gridview, benefit of using gridview is you can easily insert update and delete.

You can implement by having TemplateField in a Gridview.



Thanks
Ashish


是否需要在网页上放置单个数据显示控件?如果放置DropDownListGridView是否可以接受?我的意思是说,放置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 a DropDownList and a GridView ? I meant to say, place a DropDownList, fill it will Customer ID/Name, on selection of any Customer, fill the GridView accordingly. Now you can easily use GridView for Add/Edit/Delete purposes.


这篇关于可以将ASP转发器控件用于接受输入,以便在ASP.net Web应用程序中输入多个记录(购买的商品).的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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