me have 5 columns and one of them is Business id when i bind data to control all bind but drowdown list ones are not bind.can any one give any suggession or simple idea.i have try on many ways but not complete my task .and same situation with chekbox also want help for chek box
my code are below
<script>
function EditRecord(Aid,Aaid,Bid,TAmount,APaid,ABalance,Tdate,Fmonth,Fyear,Gobserverd,Rmark) {
$('[id$="hfAccount"]').val(Aid);
$('[id$="AccountId"]').val(Aaid);
$('[id$="ddlBusiness"]').val(Bid);
$('[id$="txtTotalAmount"]').val(TAmount);
$('[id$="txtAmountPaid"]').val(APaid);
$('[id$="txtAmountBalance"]').val(ABalance);
$('[id$="txtTransactionDate"]').val(Tdate);
$('[id$="txtForMonth"]').val(Fmonth);
$('[id$="txtForYear"]').val(Fyear);
$('[id$="txtGestureObserved"]').val(Gobserverd);
$('[id$="txtRemarks"]').val(Rmark);
$('[id$="btnUpdate"]').removeAttr("disabled");
}
</script
<asp:TemplateField HeaderText="Edit">
<ItemTemplate>
<a style="cursor:pointer" onclick="EditRecord('<%#Eval("AccountId")%>','<%#Eval("AccountId")%>','<%#Eval("BusinessTitle")%>','<%#Eval("TotalAmount")%>','<%#Eval("AmountPaid")%>','<%#Eval("AmountBalance")%>','<%# Convert.ToDateTime(Eval("TransactionDate")).ToShortDateString()%>','<%#Eval("ForMonth")%>','<%#Eval("ForYear")%>','<%#Eval("GestureObserved")%>','<%#Eval("Remarks")%>')"><img id="imgEdit" src="Images/edit2.ico" alt="Edit"/>
</ItemTemplate>
</asp:TemplateField>
when i click this button all data are bind with controls except ddlBusiness