Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# dagda1 10/16/2006 8:18 AM
Hi all,

Has anyone noticed that the code at the bottom of the LoadContent() method of the PageEngine class will never run, that is:

// remove html that was in the original page (Default.aspx)
for (int i = this.Controls.Count -1; i < 0; i --)
this.Controls.RemoveAt(i);

The variable 'i' will never be less than 0 and so the loop will never iterate.

I hope I am not being pedantic by posting this but just wanted to point it out.

Thanks

Paul
# martijnb 10/16/2006 5:16 PM
dagda1// remove html that was in the original page (Default.aspx)
for (int i = this.Controls.Count -1; i < 0; i --)
this.Controls.RemoveAt(i);

The variable 'i' will never be less than 0 and so the loop will never iterate.

I hope I am not being pedantic by posting this but just wanted to point it out.

Thanks for the hint :$ .