Buy Questpond's video subscriptions on
huge discount
.
Online: 3341
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Forums
>
ASP.NET
>
Loading ...
What is the difference between data text field and data value field properties of drop down list
Posted by
Sekar.C
under
ASP.NET
on 5/22/2012 |
Points: 10
| Views : 45810 | Status :
[Member]
| Replies : 2
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
Hi,
What is the difference between data text field and data value field properties of drop down list
Regards
Sekar.c
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
Chakram
on: 5/22/2012
[Member]
Starter
|
Points: 25
0
DataTextField is the one what it will be displayed in dropdownlist and DataValueField is what value you will get on selection in code that we may require to implement some bussiness logic
Use the DataTextField and DataValueField properties to specify which field in the data source to bind to the Text and Value properties of each list item in the control, respectively.
Sekar.C
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Sriramnandha
on: 5/23/2012
[Member]
Starter
|
Points: 25
0
Use the DataTextField property to specify which field from the DataSource to bind to the Text property of each item in the control.
This differs from the DataValueField property, which is used to specify the field that will provide the Value of each select option. DataTextField provides the selectable options that the user interacts with, while DataValueField provides the values that are used when submitting the form data.
regards
sriram
Sekar.C
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Login to post response
Latest Posts
How to get the exact property name while getting error
(0)
PDB file is not showing Line Number in dot net application hosted on server
(0)
Both Strings morethan 5 letters in length end of the words one vowel and one consonent is different
(0)
how to check Any adjacent letters transposed between two strings(ex: JOHN, JHON)
(1)
can't receive data after success login ?
(1)
Implement Multi-Tenant in Azure Logic Apps
(0)
Why ASP.Net Core 7.0 Web API showing as Connection refused?
(0)
Iterating over columns of dataframe and print as rows in Python Django
(0)
More ...