Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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();
}
Posted
Updated 18-Dec-16 19:01pm
v2

1 solution

if textbox in update panel and checkboxlist in not update panel than cant show,
the solution is get any related change than both control is in update panel
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900