Skip to content
Loading
  • Jefferson S. Motta
    0
    at
    1. protected void Page_Load(object sender, EventArgs e)  
    2. {  
    3. if (Page.IsPostBack) return;
    This is because if you don't use this command, it will clear the page when btnsave_Click is fired.
    0
  • Mageshwaran R
    0
    Hi,
    replace this code:
    1. CheckBoxList1.DataSource = ds.Tables[0]["columnname"].Tostring();    
     
    0
  • Jefferson S. Motta
    0
    I see with attention your code if you do not use if (!IsPostBack) it will reset your page. If you have an event, that's ok, you will see that is going to work. At least did you tried this or not?
    0