Click to See Complete Forum and Search --> : Postback not working second time?


ThisIsBadger
March 29th, 2006, 08:44 AM
I'm getting weirdness with a linkbutton I'm using. The first time I click it, it generates the postback event, but the second time and every time after that, instead of posting back it generates a client-side error telling me "'undefined' is null or not an object".

It doesn't seem to be anything to do with the fact that it's a linkbutton, on the basis that I can change it to a button or image and get the same error. I've had a look around and taken several steps, none of which seem to work. I've already ...

1. run aspnet_regiis.exe -c
2. Manually copied the aspnet_client folder underneath my virtual directory
3. Verified that the page is generating a client side ID for the linkbutton.

...with no luck.

Any ideas? It's not a logic error, as the server-side Click event doesn't have any code in it yet ...

ThisIsBadger
March 29th, 2006, 09:17 AM
... and I've just discovered it works perfectly in Mozilla Firefox, so it's an IE only problem.

ThisIsBadger
March 29th, 2006, 09:40 AM
It's OK, solved it. It was caused by Page.SmartNavigation being set to True.