databinding a dropdown list in asp.net and c#
-
hi, i have a dropdown list which should be databound to a database table. Thats is fine, but i want to have first 2 entries of the list to be static and the rest from database table...like list values : choose one.... All the rest from database table. to achieve this what to do in the asp.net page and in the c# page. thanks
-
hi, i have a dropdown list which should be databound to a database table. Thats is fine, but i want to have first 2 entries of the list to be static and the rest from database table...like list values : choose one.... All the rest from database table. to achieve this what to do in the asp.net page and in the c# page. thanks
You can add the values to sql statement using a union statment. Or after the databind insert a listitem object into the dropdownlist.
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things --thedailywtf 3/21/06
-
hi, i have a dropdown list which should be databound to a database table. Thats is fine, but i want to have first 2 entries of the list to be static and the rest from database table...like list values : choose one.... All the rest from database table. to achieve this what to do in the asp.net page and in the c# page. thanks
-
You can add the values to sql statement using a union statment. Or after the databind insert a listitem object into the dropdownlist.
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things --thedailywtf 3/21/06
-
Set "AppendDataBoundItems" property of DropDownList to "true" and all databound items will be added after items you've added manually. e.g. Please choose one _________________