The Question : 131 people think this question is useful Updated an existing Web Site project type Visual Studio 2015, I changed the Framework to 4.6. I then expected to have all those new features available in my code behind files. Unfortunately I’m getting errors like: Error CS8026: Feature ‘expression-bodied property’ is not available in
The Question : 137 people think this question is useful I am using the .Net MVC4 Web API to (hopefully) implement a RESTful api. I need to pass in a few parameters to the system and have it perform some action, then return a list of objects as the results. Specifically I am passing in
The Question : 137 people think this question is useful I have an asp button. It’s server-side so I can only show it for logged in users, but i want it to run a javascript function and it seems when it’s runat=”server” it always calls the postback event. I also have a regular button (<input...>)
The Question : 137 people think this question is useful I wanted to know what is the meaning of I am using IIS 7.5 and I have a simple web application. Do I need to write this in my web.config file. I have also written few http handler for jquery ajax call. I am using
The Question : 136 people think this question is useful In ASP.NET MVC 2, I’d like to write a very simple dropdown list which gives static options. For example I’d like to provide choices between “Red”, “Blue”, and “Green”. The Question Comments : The Answer 1 189 people think this answer is useful See this
The Question : 136 people think this question is useful I know on client side (javascript) you can use windows.location.hash but could not find anyway to access from the server side. The Question Comments : did you get a way aruond this problem , I have bookmarks with has in the url and want to
The Question : 137 people think this question is useful Whenever I add a javascript or css file to my asp.net core project and I execute dotnet run in my bash terminal, I get the following error: /usr/share/dotnet/sdk/1.0.1/Sdks/Microsoft.NET.Sdk/build/Microsoft .NET.Sdk.DefaultItems.targets(188,5): error : Duplicate ‘Content’ items were included. The .NET SDK includes ‘Content’ items from your project
The Question : 135 people think this question is useful I am new to ASP.NET MVC and Web API and trying to get the basics. AFAIK, we have project templates in VS 2013, named as MVC, Web API and Both of them together. I have gone through the tutorials and learned that we can make
The Question : 136 people think this question is useful Visual Studio 2015 adds a file named .vs\config\applicationhost.config to the root of a solution when an ASP.NET Web application project is created. Should this file be checked in to source control or should it be ignored (so that each user will have their own local
The Question : 134 people think this question is useful I’m trying to add an”active” class to my bootstrap navbar in MVC, but the following doesn’t show the active class when written like this: This resolves to what looks like a correctly formatted class, but doesn’t work: In the Bootstrap documentation it states that ‘a’
The Question : 134 people think this question is useful I have two buttons on my MVC form: From my Controller action how do I know which one have been pressed? The Question Comments : Why not just add onclick events to these buttons that go to their own AJAX call which will go to
The Question : 135 people think this question is useful I’m having a serious issue with Internet Explorer caching results from a JQuery Ajax request. I have header on my web page that gets updated every time a user navigates to a new page. Once the page is loaded I do this It just injects