WebResource Script in VBeXpressWebForms

My application still using VbExpress generated code even if the authors do not do any development/support.

When moving to DNN with URL rewriting I had to modify  VBeXpressWebForms.VBeXpressDatePicker.vb .

I’ve commented out in GenerateJScript

‘mnf 26/5/2006 strOut = strOut & “” & vbCrLf

Added <Assembly: WebResource(“Calendar.js”, “application/x-javascript”)> ,

added the “Calendar.js“ file as embedded resource and added

        Private Sub VBeXpressDatePicker_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Dim sResName As String = “Calendar.js”
            Debug.Assert(Not (Me.GetType().Assembly.GetManifestResourceInfo(sResName) Is Nothing))
            Me.Page.ClientScript.RegisterClientScriptResource(Me.GetType(), sResName)

        End Sub
See also my post about extra validation to make debugging of WebResources easier.