使用下拉列表记录应显示在标签文本框和网格中 [英] using drop down list records should display in labels text box and grid

查看:61
本文介绍了使用下拉列表记录应显示在标签文本框和网格中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用下拉菜单.
借助于此,我从具有现有数据库的Web表单中选择一条记录.

我想使用数据库表在标签文本框和网格上显示记录.
有product_id,product_name,product_quantity,product_price
所以我从下拉列表中使用名称中的产品名称,并想在标签上显示价格和数量并计算产品价格.

无论我从文本框中插入什么数量,并将此计算出的价格显示在文本框中.

如果有任何机构提供该代码,请发送给我.
谢谢.

Hi,

I am using a drop down menu.
With the help of that I select a record from web form with existing database.

I want to display the records on label text box and grid using database table.
There is product_id, product_name, product_quantity, product_price
so i am using product name from name from drop down and want to display rate and quantity on label and calculate price of product.

Whatever quantity I am inserting from text box and display this calculated price in a text box.

If any body have code for that please send me.
Thanks.

推荐答案

好.那么到目前为止您尝试了什么?

您需要使用Dropdown选定的更改事件.使用下拉菜单中选择的名称作为查询的参数,获取数据并将其绑定/填充到控件中.

听起来不像是一门火箭科学.试试吧!
Ok. So what have you tried so far?

You need to use Dropdown selected change event. Use the name selected in dropdown as a paramter to the query, get back data and bind/fill it in controls.

Doesn''t sound like much of a rocket science. Try out!


这篇关于使用下拉列表记录应显示在标签文本框和网格中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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