Hi Guys,
I have a dropdownlistbox with 4 Items, which are entered manually like
Value DisplayName
0 Patient
1 Nurse
2 Doctor
3 Referral
Lets say user selects Nurse, I want to send Nurse to the database and not 1
but when I use the code
mainNav1.SelectSingleNode("/dfs:myFields/my:ComboReason",
NamespaceManager).Value it returns 1 but I want to get the actual
DisplayName, how can I do it plz let me know ASAP.
Thanks very much guys
Cheers
Chandra
S.Y.M. Wong-A-Ton - 22 Jun 2007 08:30 GMT
You cannot lookup the DisplayName using static entries in your drop-down list
box. You'll have to bind your drop-down list box to either a secondary data
source or a repeating node in your main data source. Once you've done that
you can use a filter in your XPath expression to lookup the DisplayName in
your secondary data source or repeating node by using the selected value.
---
S.Y.M. Wong-A-Ton
> Hi Guys,
>
[quoted text clipped - 22 lines]
>
> Chandra
kc.reddy.2000@gmail.com - 25 Jun 2007 02:43 GMT
On Jun 22, 7:30 pm, S.Y.M. Wong-A-Ton
<SYMWongA...@discussions.microsoft.com> wrote:
> You cannot lookup the DisplayName using static entries in your drop-down list
> box. You'll have to bind your drop-down list box to either a secondary data
[quoted text clipped - 30 lines]
>
> > Chandra
Thanks for the info.