Linked Questions

1 vote
2 answers
3k views

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 ...
Darama's user avatar
  • 3,380
0 votes
1 answer
769 views

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 ...
eyvaz's user avatar
  • 171
0 votes
0 answers
173 views

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 ...
Caleb Johnson's user avatar
3 votes
2 answers
2k views

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 ...
pnizzle's user avatar
  • 6,479
0 votes
1 answer
2k views

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 ...
Neill's user avatar
  • 711
0 votes
2 answers
1k views

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 (...
Hob's user avatar
  • 139
1 vote
1 answer
1k views

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....
GPGVM's user avatar
  • 5,637
0 votes
1 answer
871 views

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....
Luis Valencia's user avatar
1 vote
2 answers
787 views

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)...
Monojit Sarkar's user avatar
-1 votes
2 answers
937 views

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 ...
Marzouk's user avatar
  • 2,723
1 vote
0 answers
690 views

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: ...
Newbie's user avatar
  • 11
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""NetworkError: 403 Forbidden - http://www.myapp.com/~/App/XV-Directives/form-input-...
Cesar Vega's user avatar
0 votes
1 answer
324 views

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-...
Sabir Hossain's user avatar
-1 votes
2 answers
385 views

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 ...
Jasmine's user avatar
  • 5,317
0 votes
1 answer
337 views

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" />
malkovich's user avatar

15 30 50 per page