Note that there are some explanatory texts on larger screens.

plurals
  1. POValues Disappear In Repeater when ADDING an empty row
    text
    copied!<p>Actually i am trying to bind values in the repeater row and its also getting binded in a row,and i have gave them <strong>ADD BUTTON</strong> for adding additional rows to the repeater so that they can be flexible with working.But my problem is <strong>AFTER FILLING THE FIRST ROW</strong> when i press the <strong>WHEN I PRESS THE ADD BUTTON</strong>,all the values in the repeater gets disappear and a additional row is getting added. I want the selected values in the row should be without disappear ,and an additional row should be added. here is my code <strong>FOR BINDING EMPTY ROW to repeater.</strong></p> <pre><code>{ lstaddrow.Add(new IR_INVESTIGATION()); rptinvest.DataSource = lstaddrow; rptinvest.DataBind(); } </code></pre> <p>here is my code <strong>FOR EMPTY ROW.</strong></p> <pre><code> List&lt;IR_INVESTIGATION&gt; lstEntered = new List&lt;IR_INVESTIGATION&gt;(); using (EHSIMSDataContext db = new EHSIMSDataContext()) { foreach (RepeaterItem itm in rptinvest.Items) { DropDownList ddlemployee = itm.FindControl("ddlemployee") as DropDownList; DropDownList ddlrole = itm.FindControl("ddlrole") as DropDownList; TextBox email = itm.FindControl("email") as TextBox; TextBox depart = itm.FindControl("depart") as TextBox; TextBox pos = itm.FindControl("pos") as TextBox; IR_INVESTIGATION abKeyword = new IR_INVESTIGATION(); lstEntered.Add(abKeyword); } } return lstEntered; </code></pre> <p>here is my code <strong>BUTTON CLICK.</strong></p> <pre><code> lstaddrow = addrows(); rptinvest.DataSource = lstaddrow; rptinvest.DataBind(); } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload