devi togliere <% perchè il tag asp era già aperto...

If ipagecount <> 1 Then %>