Hi All,
In my page form contain a dropdownlist which AppendDataBoundItems = "true" because I want my dropdownlist has a "Please Select Items From List" item.
My code as below
<asp:DropDownList ID="ddlSubCode" runat="server" AppendDataBoundItems ="true" >
</asp:DropDownList> AndCode behind private void LoadSubCode()
{
DataSet myds = new DataSet();
DataTable mydt = new DataTable();
DropDownList SubCode = (DropDownList)dvListOfJob.Rows[5].FindControl("ddlSubCode");
try
{
mydt = SQLFunc.BindSubCode("C70601");
SubCode.Items.Clear();
SubCode.Items.Insert(0, new ListItem("-- Please ...
Go to the complete details ...