asp.net-mvc
Routing for custom ASP.NET MVC 404 Error page
I am trying to make a custom HTTP 404 error page when someone types in a URL
that doesn’t invoke a valid action or controller in ASP.NET MVC, instead of it displaying the generic “Resource Not Found” ASP.NET error.
jqGrid: using multiple methods to filter data
My requirement is to show a page with multiple filters to apply to grid data.
ASP.NET MVC 5 group of radio buttons
I am starting my first ASP.NET MVC project, so I have one simple question.
I have following code:
Best way to trim strings after data entry. Should I create a custom model binder?
I’m using ASP.NET MVC and I’d like all user entered string fields to be trimmed before they’re inserted into the database. And since I have many data entry forms, I’m looking for an elegant way to trim all strings instead of explicitly trimming every user supplied string value. I’m interested to know how and when people are trimming strings.
How do I dispose my filestream when implementing a file download in ASP.NET?
I have a class DocumentGenerator which wraps a MemoryStream. So I have implemented IDisposable on the class.
Displaying standard DataTables in MVC
Perhaps this is just completely wrong, but back in the days of Webforms you would return a Dataset which you would then bind to a grid. But now in MVC you’re not supposed to pass a datatable because you cannot serialize it and it’s technically passing objects into the View where it doesn’t belong? But how on earth am I meant to display data on a view?! I can’t use LINQ to SQL classes here since this is a pure in memory data structure.
Questions about using Ninject
I went through the recommended steps to add Ninject to my MVC application. And I added a DbContext argument to my controllers’ constructors.
How to update a claim in ASP.NET Identity?
I’m using OWIN authentication for my MVC5 project.
This is my SignInAsync
Passing data to Master Page in ASP.NET MVC
What is your way of passing data to Master Page (using ASP.NET MVC) without breaking MVC rules?