Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

Metronic 8.0.37 and Asp.Net Mvc


i am a web pragrammer at erciyes university. i bought metronic 8.0.37 but i dont use the metronic theme and javascript file with Asp.Net Mvc Core. I saw all tutorial but i dont understand how use javascript file and layout Please help me.


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


Hi,

In asp.net we have some files which are loaded globally and some files which are loaded depending on page view.

For example to load your js file only on auth pages you can include it in the file Starterkit/Views/Layout/Auth.cshtml with the code below:

@{
KTTheme.addJavascriptFile("/js/site.js");
}


In Metronic we have 4 predefined main layout files in the folder Starterkit/Views/Layout/, default layout is a dark sidebar layout. You can change the default layout in a file.Starterkit/Views/_ViewStart.cshtml.

Also, you can set the layout inside view by overriding a Layout constat.

@{
Layout = KTTheme.getView("DefaultLightSidebar.cshtml");
}


Regards,
Lauris Stepanovs,
Keenthemes Support Team



Hi Lauris,
i dressed all css and i got metronic view 8.0.37 bu i dont use javascript file attriubtes. For example i dont use popup partial view and advanced datatable properties and others.

my only problem i want to metronic 8.0.37 javascript file but i dont.

please help me.



Hi,

You should have all metronic javascript files in folder _keenthemes/src/js folder.

Bundled files will be output to wwwroot folder.

Regards,
Lauris Stepanovs,
Keenthemes Support Team


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(