如何在RDLC报告中显示dropdownlist的值而不是id? [英] How do I display the value of dropdownlist instead of id in a RDLC report?
本文介绍了如何在RDLC报告中显示dropdownlist的值而不是id?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个网络表单。它包含3个字段。从日期到日期,卖家名称。点击提交按钮,所有3个字段的数据都应该显示在RDLC报告中..右边只有下拉列表的ID显示名称的实例..我正在使用一个名为userinfo的主人来获取卖家的详细信息。
我使用
Hi,
I have a web form.Which consists 3 fields. From date, to Date, Seller Name. on click of submit button, data of all 3 fields should be displayed in RDLC report.. rightnow only the id of dropdown is displaying instaed of the name.. I am using a master called userinfo to get the details of seller.
I used
ddlSeller.SelectedItem.Text
。即使这不起作用。
请帮助
我尝试了什么:
i使用了这个..
.Even this doesn't work.
Kindly help
What I have tried:
i have used this..
dropdown.selecteditem.text
推荐答案
这取决于你想从DropDown列表中获取什么...
这是获取DropDown列表的文本:
It depends on what you want to fetch from the DropDown List...
This is to get the Text of the DropDown List:
string dropDownText = DropList.SelectedItem.Text.ToString();
这是为了获得DropDown列表的价值:
This is to get the Value of the DropDown List:
string dropDownValue = DropList.SelectedValue.ToString();
这篇关于如何在RDLC报告中显示dropdownlist的值而不是id?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文