Ask a Question related to ASP.NET Building Controls, Design and Development.
-
groovyghoul #1
Extra "DataValueFields" in custom DropDownList
Hi
I am building a custom databound dropdownlist, and I would like to have
more than one "DataValueField". I would name them DataValueField2,
DataValueField3, etc.
I'm having trouble figuring out how I would bind to them.
Any help would be appreciated. Thanks.
- Richard
groovyghoul Guest
-
#26218 [Opn->Fbk]: mail() sends extra "RCPT TO: <>" to smtp host
ID: 26218 Updated by: pollita@php.net Reported By: bzheng at us dot nomura dot com -Status: Open +Status: ... -
#26218 [NoF->Opn]: mail() sends extra "RCPT TO: <>" to smtp host
ID: 26218 User updated by: bzheng at us dot nomura dot com Reported By: bzheng at us dot nomura dot com -Status: No... -
#26218 [Opn->NoF]: mail() sends extra "RCPT TO: <>" to smtp host
ID: 26218 Updated by: iliaa@php.net Reported By: bzheng at us dot nomura dot com -Status: Open +Status: ... -
#26218 [NEW]: mail() sends extra "RCPT TO: <>" to smtp host
From: bzheng at us dot nomura dot com Operating system: W2k server/IIS 5/PHP in CGI mode PHP version: 4.3.3 PHP Bug Type: ... -
"sendmail_from" not set in php.ini or custom "From:" header missing
Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Lines: 14 Message-ID:... -
Teemu Keiski #2
Re: Extra "DataValueFields" in custom DropDownList
Hi,
you would if course get them from the property into a string array by
splitting the given string value (containing "DataValueField2,
DataValueField3"). Thewn when you need to get the corresponding data, loop
through the string array and use DataBinder.Eval(dataitem, arrayitem) to get
the field objecty from data source item (this happens in a loop which
enumerates the data source)
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
[url]http://blogs.aspadvice.com/joteke[/url].
"groovyghoul" <groovyghoul@gmail.com> wrote in message
news:1165039837.114329.306370@79g2000cws.googlegro ups.com...> Hi
>
> I am building a custom databound dropdownlist, and I would like to have
> more than one "DataValueField". I would name them DataValueField2,
> DataValueField3, etc.
>
> I'm having trouble figuring out how I would bind to them.
>
> Any help would be appreciated. Thanks.
>
> - Richard
>
Teemu Keiski Guest



Reply With Quote

