Geeks With Blogs

News My Blog has been MOVED to
Michael Freidgeim's OLD Blog My Blog has been MOVED to

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 & "<script Language=""JavaScript"" src=""JScript/Calendar.js""></script>" & 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.

Posted on Monday, May 29, 2006 10:11 AM None | Back to top

Comments on this post: WebResource Script in VBeXpressWebForms

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Michael Freidgeim | Powered by: