>I have no idea why the JavaScript block is being truncated when the User
>Control loads from the Cache.
>Has anyone come across such a situation ???

What else is on your page currently? Do you have any other form elements
(not in the user control, but on the page) that will force the __doPostBack
javascript function to be declared? When a Server Control requires a
PostBack it asks the page for the appropraite js code, and the page then
registers the client-side function. Since your user control is not loading
as it normally would (ASP.NET effectively inserts a placeholder control for
your cached control), it's not letting the page know that it needs that
javascript to be registered on the page. Add another drop down list to the
page itself, set it to autopostback="true" and I bet you won't have that
client-side js error any more.

adam..

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to