What do we mean by DataValueField in Asp.Net?

 Posted by vishalneeraj-24503 on 1/14/2014 | Category: ASP.NET Interview questions | Views: 2002 | Points: 40

DataValueField is related to Dropdownlist control i.e. it's Dropdownlist property.We provide Database Table column to it to display as a Values in Dropdownlist control when it is populated.
When we select any items from Dropdownlist,then we get selected item value.Generally it's primery key column values.

ddl_employee.DataValueField = "employee_id";

Here,employee_id is my Column Name.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response