ontextchange event cant show fill checkboxlist if we use pageload or button_click event than show filled checkboxlist items.and binxcheckbox function also call when textchange event fire but after that we click on any button than after show checkbox list item otherwise not show
What I have tried:
i tried to call button_click(null,null) event pass through textchange eventplz give me solution when on lost focus of textbox directly fillcheckbox and show on screen and i trid in asp.net on web based application
code
private void BindSetList()
{
str = "SELECT productnm,id from Product_master";
ds = objgn.getSqlValue(str, "Set_detail");
CheckBoxList1.DataSource = null;
CheckBoxList1.DataSource = ds;
CheckBoxList1.DataTextField = "productnm";
CheckBoxList1.DataValueField = "id";
CheckBoxList1.DataBind();
btnnext_Click(null, null);
}
protected void txtProductnm_TextChanged(object sender, EventArgs e)
{
BindSetList();
}