Linked Questions
18 questions linked to/from How do you request static .html files under the ~/Views folder in ASP.NET MVC?
1
vote
2
answers
3k
views
How to add new html page in project ASP.NET? [duplicate]
I try to add new static HTML page in project, for this I added link from one page to new page:
<a class="contact__item-link" href="~/Views/Home/Faq.cshtml" target="_blank">FAQ</a>
Also ...
0
votes
1
answer
769
views
pure html pages without functionality in asp.net mvc [duplicate]
I am creating a web application with asp.net core that has a lot of pure HTML pages without any functionality.
How do I add these pages to the application? Should I create an action method for each ...
0
votes
0
answers
173
views
ASP.NET- 404 when attempting to open PDF [duplicate]
I'm using ASP.NET and making a website. I have a link to a pdf in some of my pages, but they all lead to 404 errors. I know the path is right as I used Visual Studio to generate the path, I didn't ...
3
votes
2
answers
2k
views
.net Core Controller action, return static html page
I intend to return a static html page from my controller action. The html page is part of my project / bundle. I have the following code which works when run locally (localhost), but when on Azure, it ...
0
votes
1
answer
2k
views
In ASP.NET MVC, how can I open a static .html page in a new tab from an action method in a controller?
I am adding static help pages to my MVC application.
Clicking the help link directs to an Action Method with a unique identifier, telling the controller which page to show.
I know it can be done ...
0
votes
2
answers
1k
views
Redirect to view from global.asax not working
How to Redirect to view from global.asax?
Below is my code. It gives me HTTP Error 500.19 - Internal Server Error.
public void Application_BeginRequest(object sender, EventArgs e)
{
if (...
1
vote
1
answer
1k
views
Independent cshtml relative path resources not loading
I have an independent cshtml file that is not loading js, css, img, resource files.
By independent I mean a csthml that is not using the layout and is primarily HTML with a tiny bit of razor thrown in....
0
votes
1
answer
871
views
404 when converting asp.net mvc app to angularjs
so I have my full asp.net mvc project working which renders perfectly fine.
Then I am trying to convert it to use angular for the UI and web api for the backend.
In the views folder I added an index....
1
vote
2
answers
787
views
How to mention angular custom directive templateUrl path when working with Asp.net MVC
i have a sample directive where i need to mention templateUrl file location. my template file exist in this location Views/Home/searchableMultiselect.html
app.directive("showdata", function ($timeout)...
-1
votes
2
answers
937
views
In My MVC 5 project, i can't access static html page when working on Local IIS
I have a simple ASP.NET MVC 5 project, i created a folder called static then created this html page inside it > static.html:
<!DOCTYPE html>
<html>
<head>
<title>Hello ...
1
vote
0
answers
690
views
MVC 4 ASP.net 4.5 ... 404 Error & angular routing - IIS 8.5 and windows 8.1
I have searched everything under the sun! It is driving me insane. I have set up a MVC 4.0 application on IIS 8.5 on windows 8.1 and getting 404 error when routing. Below is my routing defined:
...
0
votes
2
answers
394
views
how to use angular module 'ui-route' to find the templateUrl inside a directive and not get an error on MVC .NET
how to use angular module 'ui-route' to find the templateUrl inside a directive and not get an error on MVC .NET""NetworkError: 403 Forbidden - http://www.myapp.com/~/App/XV-Directives/form-input-...
0
votes
1
answer
324
views
View not loading in Asp.net angular app. Angular Routing with Asp.net mvc
I'm trying to route a simple view in ASP.NET AngularJs app but the view not loading on the browser ngView is commented out in browser.
JavaScript
(function () {
"use strict";
angular.module("app-...
-1
votes
2
answers
385
views
Why this is not loading view1.cshtml in MVC empty web application ANGULAR
I am learning Angular. I am watching a 2 years old video, and I am trying to use route concept and using in view1.CShtml (Remember, its CShtml and not html, while in the video, he uses html).
I also ...
0
votes
1
answer
337
views
Server.MapPath with ISS
Server.MapPath is not showing my files with IIS 7.here is my simple code:
@{
Layout = null;
}
@{
string imgPath = Server.MapPath("~/Views/Home/anim.jpg");
}
<img src="@imgPath" />