ASP.NET MVC

I suggest you ...

You've used all your votes and won't be able to post a new idea, but you can still search and comment on existing ideas.

There are two ways to get more votes:

  • When an admin closes an idea you've voted on, you'll get your votes back from that idea.
  • You can remove your votes from an open idea you support.
  • To see ideas you have already voted on, select the "My feedback" filter and select "My open ideas".
(thinking…)

Enter your idea and we'll search to see if someone has already suggested it.

If a similar idea already exists, you can vote and comment on it.

If it doesn't exist, you can post your idea so others can vote on it.

Enter your idea and we'll search to see if someone has already suggested it.

  • Hot ideas
  • Top ideas
  • New ideas
  1. MVC POCO Controllers and fluent routes

    It's described here in detail: http://stackoverflow.com/questions/10607301/mvc-poco-controllers-and-fluent-routes
    I don't want to inherit from framework Controller class anymore!
    I want to just specify routes with some rules, describing how to map requests to methods and parameters of my POCO controller class instance.

    9 votes
    Vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      You have left! (?) (thinking…)
      0 comments  ·  Flag idea as inappropriate…  ·  Admin →
    • deliver some templates with designs

      Please give some nice starters with designs (fonts, graphics, layout etc.)

      1 vote
      Vote
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        I agree to the terms of service
        Signed in as (Sign out)
        You have left! (?) (thinking…)
        0 comments  ·  Flag idea as inappropriate…  ·  Admin →
      • Add an ability to refer to sections in a Master Layout page from within its child page

        Now we can refer to sections defined in child views. I.e. in a view or layout view I can insert a section with @RenderSection which should be defined in a view refering the current view as Layout.
        It's great for creating master layouts in an application. But if I want to share code between several applications (for an instance, between a library and an application) then I need inversion of control:
        master view define sections (with @section) and its child view refers and uses them (with @RenderSection). This'd allow me to share a master view with a set of predefined…

        2 votes
        Vote
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          I agree to the terms of service
          Signed in as (Sign out)
          You have left! (?) (thinking…)
          0 comments  ·  Flag idea as inappropriate…  ·  Admin →
        • Add a function to Model Binder……

          Sometimes we usually want to encypt and decypt the values included in the hiddenfield,but we cannot do that directly——I want that Model Binder will automatically do this(e.g):

          public ActionResult xxx(EntityModel em)
          {
          ………………
          return View(em); //When calling this, View will automatically encypt these values one by one,thus you can output them in hiddenfield……
          }
          And you can offer an overload function to decide which properties to be encypted……

          When page renders, Model binder should accept these encypted values and "smart" enough to translate them to the original ones……

          PS:I know I can do that manually, but if that could be…

          4 votes
          Vote
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            I agree to the terms of service
            Signed in as (Sign out)
            You have left! (?) (thinking…)
            0 comments  ·  Flag idea as inappropriate…  ·  Admin →
          • MVC Web API Template Without UI Cruft

            When I create an ASP.NET MVC Web API project, I don't want any Home view, CSS, Images and other webpage related content. I just want the bare minimum needed for the API. Perhaps a new template type could be added for this?

            3 votes
            Vote
            Sign in
            Check!
            (thinking…)
            Reset
            or sign in with
            • facebook
            • google
              Password icon
              I agree to the terms of service
              Signed in as (Sign out)
              You have left! (?) (thinking…)
              0 comments  ·  Flag idea as inappropriate…  ·  Admin →
            • Improve support for Tablet detection

              At the moment when an iPad is detected, the mobile view is not shown, which is correct. However if you browse the site with another tablet (be it Windows, Android or otherwise), the mobile view is returned

              2 votes
              Vote
              Sign in
              Check!
              (thinking…)
              Reset
              or sign in with
              • facebook
              • google
                Password icon
                I agree to the terms of service
                Signed in as (Sign out)
                You have left! (?) (thinking…)
                0 comments  ·  Flag idea as inappropriate…  ·  Admin →
              • Add HTML5 support to HtmlHelper methods TextBoxFor etc

                Support would include adding the required attribute when the RequiredAttribute DataAnnotation is applied to a property. Setting the input type for numeric properties to number. Using the HTML min and max attributes when a DataAnnotations RangeAttribute is applied to a property. I could give more examples but in essence DataAnnotations should map to HTML 5 attributes in preference to JQuery Validation with JQuery Validation fallback.

                2 votes
                Vote
                Sign in
                Check!
                (thinking…)
                Reset
                or sign in with
                • facebook
                • google
                  Password icon
                  I agree to the terms of service
                  Signed in as (Sign out)
                  You have left! (?) (thinking…)
                  0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                • Add support TypeConverterAttribute for DefaultModelBinder

                  Please use TypeConverter in DefaultModelBinder, received from metadata for binding.
                  There are a lot of attributes for view managing. For example DisplayAttribute, but for data input managing there is only IModelBinder. It can be applied only for class and param, but not for property.
                  For instance, I have 2 classes with DateTime property. In first class I need DD-MM-YYYY format. In second – DD.MM.YYYY. How can I do this? With support of TypeConverterAttribute I could create 2 converter classes and apply TypeConverterAttribute for properties. But now I need to create my own mechanism.

                  7 votes
                  Vote
                  Sign in
                  Check!
                  (thinking…)
                  Reset
                  or sign in with
                  • facebook
                  • google
                    Password icon
                    I agree to the terms of service
                    Signed in as (Sign out)
                    You have left! (?) (thinking…)
                    0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                  • Support for generics in razor view

                    It would be great if razor views could support generic models.

                    @model MyViewModel<T>

                    65 votes
                    Vote
                    Sign in
                    Check!
                    (thinking…)
                    Reset
                    or sign in with
                    • facebook
                    • google
                      Password icon
                      I agree to the terms of service
                      Signed in as (Sign out)
                      You have left! (?) (thinking…)
                      3 comments  ·  Flag idea as inappropriate…  ·  Admin →
                    • To maintain the page scoll position on postback using a configuration setting

                      There is a option available in web.config's page directive for Maintainscollpositiononpostback, but it is not working. It will be really helpful if this feature works from there.

                      12 votes
                      Vote
                      Sign in
                      Check!
                      (thinking…)
                      Reset
                      or sign in with
                      • facebook
                      • google
                        Password icon
                        I agree to the terms of service
                        Signed in as (Sign out)
                        You have left! (?) (thinking…)
                        0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                      • Add class definition for LocalReports

                        Add a class definition for localReports, full class support and control to the localreports, also add full html rendering for asp.net mvc, pdf renderind, control to the page size like 8.5 in x 5.5 in page size for example.

                        Include also preview reports....

                        4 votes
                        Vote
                        Sign in
                        Check!
                        (thinking…)
                        Reset
                        or sign in with
                        • facebook
                        • google
                          Password icon
                          I agree to the terms of service
                          Signed in as (Sign out)
                          You have left! (?) (thinking…)
                          1 comment  ·  Flag idea as inappropriate…  ·  Admin →
                        • Better Error Handling Support for 404 AND 500

                          The built in error handling in ASP.NET MVC is pretty poor. If there -controller- can't be found, we've got a 404. Errors? 500.

                          These then fallback to the ASP.NET error handling -> customErrors. Which means it -has- to goto an aspx or static page.

                          AND it does a 302 temp redirect .. before it hits the correct route.

                          AND it route (in the browser) is really poor. Especially with that nasty query string param, appended ...

                          ---
                          So something like this would be really nice :=>

                          1) Allow the customErrors to call an MVC route .. and it's via ResponseRewrite…

                          44 votes
                          Vote
                          Sign in
                          Check!
                          (thinking…)
                          Reset
                          or sign in with
                          • facebook
                          • google
                            Password icon
                            I agree to the terms of service
                            Signed in as (Sign out)
                            You have left! (?) (thinking…)
                            3 comments  ·  Flag idea as inappropriate…  ·  Admin →
                          • Add a "Delegate" property to the "Object" class.

                            This will allow me to specify which class (in whatever assembly) serves as the code for anything I create (controller, view, model, web form, whatever). In doing this, we can support the concept of MVC without dictating the implementation.

                            1 vote
                            Vote
                            Sign in
                            Check!
                            (thinking…)
                            Reset
                            or sign in with
                            • facebook
                            • google
                              Password icon
                              I agree to the terms of service
                              Signed in as (Sign out)
                              You have left! (?) (thinking…)
                              2 comments  ·  Flag idea as inappropriate…  ·  Admin →
                            • Support for Multi-dimentional array using javascript or knockout.js

                              If json parses and renders the data by key pair-value, we have a need that in order to transfer the data from server to client as light as possible and as fast as possible we are using multidimensional array.

                              Json
                              var json21 = {[[[CompetitionId:11871,CompetitionName:'Australia Hyundai A League'],
                              [MatchHome:'Newcastle Jets',MatchAway:'Gold Coast United'],[[HomeAhOdd:'2.05',AwayAhOdd:'1.87',HomeHandicap:'-1',AwayHandicap:'+1'],
                              ['HomeOuOdd:2.11',AwayOuOdd:'1.80',GoalLine:'3',MatchId:9926912,MatchDate:'03/09/12 17:00']]]]};

                              Multidimensional array
                              var json21 = { 'd' : [[[11871,'Australia Hyundai A League'],
                              ['Newcastle Jets','Gold Coast United'],[['2.05','1.87','-1','+1'],
                              ['2.11','1.80','3',9926912,'03/09/12 17:00']]]};

                              As you notice multidimensional array is lighter and transfer data faster compare to json key-pair value approach.

                              1 vote
                              Vote
                              Sign in
                              Check!
                              (thinking…)
                              Reset
                              or sign in with
                              • facebook
                              • google
                                Password icon
                                I agree to the terms of service
                                Signed in as (Sign out)
                                You have left! (?) (thinking…)
                                0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                              • Improve HandleErrorAttribute behavior

                                Currently it does a nice job showing a custom error page, but eventually we always end up replacing it with custom solution or overriding it's default behaviour. In most cases we need that it doesn't "swallow" the causing exception and allows us to easily track it with Health Monitoring and various loggers, or at least automatically register unhandled exceptions in the system Event Log.

                                3 votes
                                Vote
                                Sign in
                                Check!
                                (thinking…)
                                Reset
                                or sign in with
                                • facebook
                                • google
                                  Password icon
                                  I agree to the terms of service
                                  Signed in as (Sign out)
                                  You have left! (?) (thinking…)
                                  0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                • Improve IDependencyResolver

                                  Improve DependencyResolver to support manually Releasing references from the container (this makes Pooled lifetimes maintainable). See http://mikehadlow.blogspot.com/2011/02/mvc-30-idependencyresolver-interface-is.html

                                  Also, use IDependencyResolver for more things in MVC, such as in the default model binder.

                                  4 votes
                                  Vote
                                  Sign in
                                  Check!
                                  (thinking…)
                                  Reset
                                  or sign in with
                                  • facebook
                                  • google
                                    Password icon
                                    I agree to the terms of service
                                    Signed in as (Sign out)
                                    You have left! (?) (thinking…)
                                    0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                  • Add admin ui generation based on the models a la Django or RailsAdmin

                                    Add an Admin generation a la Django or RailsAdmin (from Ruby on Rails):
                                    https://github.com/sferik/rails_admin
                                    http://rails-admin-tb.herokuapp.com/

                                    The feature is supper amazing.

                                    5 votes
                                    Vote
                                    Sign in
                                    Check!
                                    (thinking…)
                                    Reset
                                    or sign in with
                                    • facebook
                                    • google
                                      Password icon
                                      I agree to the terms of service
                                      Signed in as (Sign out)
                                      You have left! (?) (thinking…)
                                      0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                    • dynamic

                                      Support for dynamic in template additional view data

                                      1 vote
                                      Vote
                                      Sign in
                                      Check!
                                      (thinking…)
                                      Reset
                                      or sign in with
                                      • facebook
                                      • google
                                        Password icon
                                        I agree to the terms of service
                                        Signed in as (Sign out)
                                        You have left! (?) (thinking…)
                                        0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                      • Make it easier to share the same action method between the POST and the GET version of a page

                                        Right now this is possible... but you will hate life if you try to make it work. This should be easy. You should be able to quickly check if the method was invoked via post, and if so do some processing, otherwise return an empty model, and in both cases you will most likely be setting a lot of the same properties on your model. Make this functionality easy!

                                        1 vote
                                        Vote
                                        Sign in
                                        Check!
                                        (thinking…)
                                        Reset
                                        or sign in with
                                        • facebook
                                        • google
                                          Password icon
                                          I agree to the terms of service
                                          Signed in as (Sign out)
                                          You have left! (?) (thinking…)
                                          0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                        • Add a way to force URLs to only work with slashes at the end, or without slashes at the end

                                          Allowing both formats to work (and thus giving search engines duplicate pages) is an SEO nightmare and just a bad practice overall. Most major sites throw redirects to one or the other if you try and access the wrong one. I'd say just let the developer specify one or the other.

                                          1 vote
                                          Vote
                                          Sign in
                                          Check!
                                          (thinking…)
                                          Reset
                                          or sign in with
                                          • facebook
                                          • google
                                            Password icon
                                            I agree to the terms of service
                                            Signed in as (Sign out)
                                            You have left! (?) (thinking…)
                                            0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                          • Don't see your idea?

                                          ASP.NET MVC

                                          Feedback and Knowledge Base