I'm not certain if this is the right spot to post this - my apoligies if it's incorrect. My co-workers and I beleive we have found a bug in the Client-API
In the ClientAPI.vb code on lines 836-838
Public Shared Function IsClientScriptBlockRegistered(ByVal objPage As Page, ByVal key As String) As Boolean Return objPage.ClientScript.IsClientScriptBlockRegistered(key)End Function
In the ClientAPI.VB code on line 839-841
Public Shared Sub RegisterClientScriptBlock(ByVal objPage As Page, ByVal key As String, ByVal strScript As String)
objPage.ClientScript.RegisterClientScriptBlock(objPage.GetType(), key, strScript)
End Sub
In the Register function the type is being passed, as a result the type should also be used for the IsClientScriptBlockRegistered so it can find the right script. As it is right now, the IsClientScriptBlockRegistered doesn't find the registered scripts. The work around is to call the Dot Net functions directly, but it should be fixed in the framework.
I searched the bug tracker and found no mention of this - thought I would post here first and see if anybody else has found this issue?
Thanks.