G
Guest
I have an embedded js resource in my Assembly asp.net 2.0
In the immediate Window I do:
((System.Web.UI.WebResourceAttribute)Attribute.GetCustomAttributes(Asm)[7])
{System.Web.UI.WebResourceAttribute}
base {System.Attribute}: {System.Web.UI.WebResourceAttribute}
ContentType: "application/x-javascript"
PerformSubstitution: false
WebResource: "Util.Ctrl.GridView.GridViewCheckBox.js"
and
Asm.GetManifestResourceInfo("Util.Ctrl.GridView.GridViewCheckBox.js")
null
Shouldn't I be getting something other than null???
my AssemblyInfo.cs contains:
[assembly: WebResource("Util.Ctrl.GridView.transparent.gif", "img/gif")]
[assembly: WebResource("Util.Ctrl.GridView.GridViewCheckBox.js",
"application/x-javascript")]
Asm.GetManifestResourceInfo("Util.Ctrl.GridView.transparent.gif")
{System.Reflection.ManifestResourceInfo}
FileName: null
ReferencedAssembly: null
ResourceLocation: Embedded | ContainedInManifestFile
The gif and the js files are in the same directory!
In the immediate Window I do:
((System.Web.UI.WebResourceAttribute)Attribute.GetCustomAttributes(Asm)[7])
{System.Web.UI.WebResourceAttribute}
base {System.Attribute}: {System.Web.UI.WebResourceAttribute}
ContentType: "application/x-javascript"
PerformSubstitution: false
WebResource: "Util.Ctrl.GridView.GridViewCheckBox.js"
and
Asm.GetManifestResourceInfo("Util.Ctrl.GridView.GridViewCheckBox.js")
null
Shouldn't I be getting something other than null???
my AssemblyInfo.cs contains:
[assembly: WebResource("Util.Ctrl.GridView.transparent.gif", "img/gif")]
[assembly: WebResource("Util.Ctrl.GridView.GridViewCheckBox.js",
"application/x-javascript")]
Asm.GetManifestResourceInfo("Util.Ctrl.GridView.transparent.gif")
{System.Reflection.ManifestResourceInfo}
FileName: null
ReferencedAssembly: null
ResourceLocation: Embedded | ContainedInManifestFile
The gif and the js files are in the same directory!