Ok, if this line isn't getting hit:

Code:
ctl.PostBackUrl = "default2.aspx?ID=" & ctl.Text.ToString
That is why you are not posting back to the right page.

When you say you got an "error", can you elaborate?

Gary