Posted on: 3/5/2015 2:33:29 PM | Views : 572

Hi, 
I have user a code project for asp.net membership management.
It works correctly if I run it from visual Studio. 
When I run it from iis , I've found that the value of grdUserList.Rows is 0, I have 2 rows inserted correctly, I debugged grdUserList had count =2 but  grdUserList.Rows has nothing so I can't delete
protected void btnDeleteSelected_OnClick(object sender, EventArgs e) { foreach (GridViewRow row in grdUserList.Rows) { if (row.RowType == DataControlRowType.DataRow) { CheckBox chkRow = (row.Cells[0].FindControl("chkRow") as CheckBox); if (chkRow != null && chkRow.Checked) { Label username = (row.Cells[1].FindControl("lblUserName") as Label); ...

Go to the complete details ...