njsokalski
Well-known member
- Joined
- Mar 16, 2011
- Messages
- 102
- Programming Experience
- 5-10
I have a Page in which I want to call ScriptManager.RegisterClientScriptResource. My directory structure for the (possibly) relevant files is:
/mypages/mypage.aspx
/scripts/myscript.js
/mymasterpage.master
In mypage.aspx.vb I have the following code in the PreRender event:
ScriptManager.RegisterClientScriptResource(Me, Me.GetType(), "myscript.js")
But I receive the error message:
Web resource 'BitStringConverter.js' was not found.
I have myscript.js marked as Embedded Resource, and I have tried everything I can think of to get it to load, but still no success. What could I be forgetting? Thanks.
/mypages/mypage.aspx
/scripts/myscript.js
/mymasterpage.master
In mypage.aspx.vb I have the following code in the PreRender event:
ScriptManager.RegisterClientScriptResource(Me, Me.GetType(), "myscript.js")
But I receive the error message:
Web resource 'BitStringConverter.js' was not found.
I have myscript.js marked as Embedded Resource, and I have tried everything I can think of to get it to load, but still no success. What could I be forgetting? Thanks.