Last post Feb 03, 2020 09:21 AM by Khuram.Shahzad
Feb 03, 2020 08:55 AM|hamayun|LINK
I am using latest .Net core MVC.
i have a main view. the main.cshtml view has css included as
<link rel="stylesheet" href="~/css/myStyle.css">
within main view, i have set partial view as
Now in my Items.cshtml view, i need to use that style css ....but seems like partial view just can't read the css as i am not seeing the css changes in UI.
Any idea if am doing something wrong and how to fix it ?
Feb 03, 2020 09:21 AM|Khuram.Shahzad|LINK
Partial view is simply piece of code that extends usability, similar code repetition, Try the partial view code directly in you Main.cshtml if it works fine then it means there is some issue with PartialView and if it is not working then there is issue
remember you friend (Browser developer tool - F12 key to invoke) it will let you know about your css available or not in browser. Another possible issue is browser cache , clear the cache especially in Chrome.otherwise will not see expected result.