In my cases i would like to embed css and js file into dll
for do that i do bellow steps and it work
step 1
Put bellow code on top of your page behind
[assembly:WebResource("YourProjectName.Assets.Plugins.Dropzone.dist.dropzone.js", "application/x-javascript")]
[assembly:WebResource("YourProjectName.Assets.Plugins.Dropzone.dist.dropzone.css","text/css")]
namespace Sanay.Suip.UserControls
{
public partial class FileUpload : UserControlBase
{
step 2
And in inInitial event by bellow codes
`protected override void OnInit(EventArgs e)
{
base.OnInit(e);
string css = "<link href=\"" + Page.ClientScript.GetWebResourceUrl(this.GetType(),
"YourProjectName.Assets.Plugins.Dropzone.dist.dropzone.css") + "\" type=\"text/css\" rel=\"stylesheet\" />";
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "cssFile", css, false);
ClientScriptManager csm = Page.ClientScript;
csm.RegisterClientScriptResource(GetType(), "YourProjectName.Assets.Plugins.Dropzone.dist.dropzone.js");
}
`