How to get query string parameter from MVC Razor markup?
I want to check the URL parameter in my Razor markup. For example, how do I do something like this:
I want to check the URL parameter in my Razor markup. For example, how do I do something like this:
My problem is that I’ve been following ASP.net MVC/API tutorials I have a working controller in the MVC side of things. For instance this works fine and returns my data in a view:
The anti-forgery token accepts a salt value. Is there any security concerns regarding choosing the salt, such as
I’m new to ASP.NET MVC and I’ve been developing a MVC 5 application with individual user authentication. I’ve been doing a layered pattern when doing my applications like separating Model layer, DAL layer, Repos, etc. etc. but now in MVC 5, I want to be able to use the user and role management and authentication which they call Identity, and then still have that layered structure to my application because right now it seems Identity is pretty much coupled with the MVC project itself with the user and role models in there and the context too.
I am working on an MVC application where the Model class Item has a List<Colour> named AvailableColours as a property.
Is it possible to use bundling and minification from Microsoft.AspNet.Web.Optimization without having an MVC project?
I need to call function on timer (lets say onTickTack() function) and reload some info in ASP.NET MVC project. I know that there are several ways to do that, but which one is the best by your opinion?
I have been googling/SO:ing this issue for a while and many seem to be sharing this, but I haven’t found any successful solution to my problem.
In the same solution, there is a ASP.NET MVC4 application Slick.App and class library Awesome.Mvc.Lib. Awesome.Mvc.Lib contains one controller class.
I have a custom Principal/Identity for my ASP.NET MVC4 web app. I have also created a AuthorizeAttribute to instantiate my custom principal, assigning it to httpContext.User in controllers where I require Authentication.