File system references to Kendo in MVC Layout.cshtml publish - asp.net-mvc

Though my development environment is working fine, I have not been able to get Kendo or Jquery to load from my Index.cshtml page.
Is there sometihng wrong witn my references.

Related

How to implement the Gentelella Bootstrap Admin theme in ASP.NET MVC?

I'm starting now with web development in Visual Studio. I have already understood MVC, I have some knowledge of HTML and I started to study the bootstrap.
Then, I discovered the beautiful template Free Bootstrap 3 Admin Template on the web, which has an example online here: https://colorlib.com/polygon/gentelella/index.html
I downloaded the files like custom.css and custom.min.css as they are shown in the following image:
But now I don't know how to put it in my project, so I created a new clean project in Visual Studio Community 2015. I did some tests, and I created some controllers and views.
How can I change the default bootstrap theme that came with ASP.NET MVC project to the downloaded one?
I imagine I should replace the _Layout in the shared folder. But what else should I bring?
I do not want all those example pages, etc. Just Bootstrap and the base layout to create my view's.
I have found everything I needed from a YouTube video, entitled "Plantilla Bootstrap en Proyecto ASP.NET MVC" (obviously in Spanish).
There are many steps:
Adding files to the project
setting the _Layout
set scripts references
bundles
Etc.
Ultimately, it worked.
step one
Create a MVC project Default template in visual studio
Step Two
Delete All cshtml in view folder expect shared folder
you must be detrmine wthich part of your page repeatly in all pages that is your layout and you can put html tag like header menu and footer in /views/shared/_layout.cshtml and write renderbody in part of layout to see default login homepage or etc
finaly
all css and java script folder paste in your project and in layout change target to available js and css resource
Learn about mvc Layout
Understand Css And JavaScript embed from bundle

dose not show icon in kendo grid

I'm working on a project using ASP MVC, for showing data I have used kendo.
When I publish the project on IIS the icon of Kendo grid dose not load and I have bundled CSS and JS. Without bundling would be better. I do not know what to do?
I have published in IIS without bundling
show image
I have published in IIS with bundling
show iamge
and I have tested to enable and disable the following line but it did not work;
BundleTable.EnableOptimizations = true;
Any solutions?
Sometime it is because of folder references inside kendo css file. Have a look to files like kendo.bootstrap.min.css in your kendo folder in your solution explorer.For example may be you need change Bootstrap/sprite.png to 2016.3.914/Bootstrap/sprite.png based on your kendo folder refrence in your project.

Subdomain does not load scripts and styles

Good afternoon,
1- I created a new solution in Visual Studio 2012
2- I created ASP.NET MVC 4 Web Application. I opted for one project "BASIC" and the Framework 4.5, Razor Engine
3- I created the controller Home
4- I created a View Index.cshtml
The content of Index.cshtml page is only a " Index "
I did nothing, just the main content of a project "BASIC".
Published, see the result:
www.meudominio.com.br -> loads the scripts and styles
imobiliaria589s42d78.meudominio.com.br/ -> NOT load scripts and styles
What should I do to make the subdomain load scripts and styles?
I appreciate the help.
I am not seeing any issues with styles not loading, so I presume this is an issue with caching in your browser. You can force most browsers to reload cached resources by pressing
CTRL + F5

Telerik MVC controls still loading jQuery Validation even after setting it not to

I have a project I'm working on and I'm using the Telerik MVC controls. I have the newest open source version.
In my _Layout.cshtml, I have the following line:
#(Html.Telerik().ScriptRegistrar().DefaultGroup(group =>
group.Combined(false)
.Compress(false))
.jQuery(false)
.jQueryValidation(false))
I want to load jQuery and jQueryValidation myself by using Cassette. The above line keeps jQuery from loading in favor of the location and version I've specified.
My problem is that when I bring up a page with a grid on it, the jquery.validation.min.js that exists in the telerik script directory still gets loaded as well as the one I have specified from a different directory.
Why is the ScriptRegistrar still loading jQueryValidation?
There was a bug which caused this erroneous behavior. Try downloading the latest internal build.
Another approach is to replace the jquery.validation.min.js that exists in the telerik script directory with an empty file.

MVC - Opening an asp.net page from the controller

I don't know if this is possible.
Can I have a mvc controller open a popup asp.net page? The asp.net page is within the mvc application, it's basically to run a crystal report viewer.
What happens just now is the mvc view loads and lists reports, then when a report is clicked it launches and exports to pdf. We now want this embedded in a web page instead of exporting to pdf(for various reasons one being no local download of the pdf report).
So sfter reading up i came across the solution to use a folder within the mvc app and use a webform in there. Now I'm trying to find how to open the .aspx pop-up from the controller where the report viewing is initiated.
Does that make any sense.
Any links/help is appreciated
Controllers in ASP.NET MVC are not supposed to open popups. You could do this using javascript inside the view. The window.open javascript function could be helpful:
window.open('/report.aspx', 'report');

Resources