Avatar of Tom Knowlton
Tom Knowlton
Flag for United States of America

asked on 

C# ASP.NET AssemblyInfo.cs - embedded .JS resides inside a folder - how do I specify the web resource path?

[assembly: WebResource("DealerSocket.Web.WebForms.Controls.CSharp.datePickerSC.js", "text/javascript")]

Open in new window


The above works fine if the datePicker.js file is in the "root" or at the same level as the webcontrol.cs file.

But how does the WebResource path change if the .JS file is inside a folder?

[assembly: WebResource("DealerSocket.Web.WebForms.Controls.CSharp  <<< folder path >>>datePickerSC.js", "text/javascript")]

Open in new window



This

root

vs this:

folder path
C#ASP.NET.NET Programming

Avatar of undefined
Last Comment
Tom Knowlton

8/22/2022 - Mon