Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


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



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


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(