I have tried many different variations of this but I can't get it to work.
Protected Overrides Sub OnPreRender(ByVal e As EventArgs)
MyBase.OnPreRender(e)
Dim scriptLocation As String = Page.ClientScript.GetWebResourceUrl(Me.Page.GetType().BaseType, "multipleValidator.WebUIValidationExtended.js")
'If (MyBase.RenderUplevel) Then Page.ClientScript.RegisterClientScriptResource(GetType(MultipleFieldValidator), scriptLocation)
Page.ClientScript.RegisterClientScriptResource(Me.Page.GetType().BaseType, scriptLocation)
End Sub When I run this in debug mode I can inspect the WebResource.axd url string that is generated by RegisterClientScriptResource. If I copy that url into the the page after it loads I can get to the resource correctly but the WebResource.axd url that ends up on the page gives me a resource can not be found error.
...
Go to the complete details ...