General ASP.NET

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. 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 →
    • Differntiate between Unauthenticated access and Unauthorized access

      In the ASP.NET security model, the documentation goes out of its way to talk about the difference between Authorization and Authentication.

      Unfortunately, the framework itself makes no such distinction. It treats an unauthenticated user access the same as a user who does not have authorization and returns the same error.

      I realize this is probably a result of the fact that most web servers treat file access errors as 403's, because HTTP doesn't really give you any other status code, and you want to differentiate between server oriented 403's and framework generated 403's, but there must be a better way…

      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  ·  General ASP.NET  ·  Flag idea as inappropriate…  ·  Admin →
      • 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  ·  General ASP.NET  ·  Flag idea as inappropriate…  ·  Admin →
        • You've gone a long way with VS SQL support ... Now, we need much better support for Azure Table Storage

          We need help in reducing the amount of time to code for Azure Table Storage and deal with table storage in the IDE. I'd like to see and modify entities and tables right from the IDE ... building the functionality of software like ClumsyLeaf's TableXplorer right into VS. Also, it would be nice to have more/better support in data source controls and data-bound controls for table storage data and keys. It's all very LOW level right now and takes quite a while to code for Azure Table Storage relative to coding against SQL/SQL Azure storage. [Also, btw ... can you…

          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  ·  General ASP.NET  ·  Flag idea as inappropriate…  ·  Admin →
          • 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 →
            • calender extender control

              Hi

              I have a below code to disable weekends(saturdays, sundays) in the calender extender control:

              for(var i=0; i<sender._days.all.length; i++)
              {
              for(var j=0; j<6; j++)
              {
              if(sender._days.all[i].id == "clnDtDesired_day_"+ j +"_0")
              {
              sender._days.all[i].disabled = true;
              sender._days.all[i].innerHTML = "<div>"+sender._days.all[i].innerText+ "</div>";
              }
              if(sender._days.all[i].id == "clnDtDesired_day_"+ j +"_6")
              {
              sender._days.all[i].disabled = true;
              sender._days.all[i].innerHTML = "<div>"+sender._days.all[i].innerText+ "</div>";
              }
              } }

              This code will be called in OnClientShown event.

              But the "sender._days.all" code segment in the above code doesn't exeucte properly in Firefox and Chrome. Its retruning "undefined" instead of "html element collection".

              How to fix this ? Whereas Its working well in all versions of…

              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  ·  General ASP.NET  ·  Flag idea as inappropriate…  ·  Admin →
              • Please add Mono like feature to create application for multiple OS friendly

                Mono and Xamarin.com like features to create Android, iOS, Mac friendly application development.

                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 →
                • Best Practices in Intellisense or Visual Studio

                  Hi,
                  I have been using visual studio for 4 years and there are so much to learn. Sometimes you dont know the stuff. Like StringBuilder is much better for string manipulation than string class.

                  During string or StringBuilder intellisense there should be recommendation line that this is recommended practice to do it this way. it may sound strange but that would be cool if new developers know from start rather than after 2 years oh string is immutable :)

                  thanks
                  Kamran

                  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…)
                    2 comments  ·  Flag idea as inappropriate…  ·  Admin →
                  • Put 'rename' as first item in smart tag for controls

                    I name my controls. So do most people - it's the most common thing you do. So why isn't it in the smart tag that appears for controls? Why do I have to scroll thru properties every time?

                    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 →
                    • End Date of JavaScript replace completely by C# like S#

                      It is ugly , confusing , non sense , I write in C# and that all what I need , I can write methods and specify method target , Client or Server
                      [Target:Cient]
                      void onMouseEnter_Image1()
                      {
                      Image1.ImageUrl="myimage.jpg";
                      }
                      [Target:Cient]
                      void onMouseLeave_Image1()
                      {
                      Image1.ImageUrl="myimage.jpg";
                      }
                      [Target:Cient]
                      void RowMouseEnter_GridView1()
                      {
                      //highlight the row
                      }

                      JavaScript should end , and replaced by more extensive language the mapp all it's feature , you can implement a Decorator JavaScript Pattern , which will remove it ugly face.

                      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 →
                      • Redesign ASP.NET providers to be asynchronous

                        All providers (except InProc) work with external data sources (SQL Server, Redis, etc.). For example, when processing single HTTP request a session state store provider can make several requests to an external data source. Each request to an external data source from session state store provider blocks an ASP.NET thread, becuase System.Web.SessionStateStoreProviderBase has no async methods.
                        The same is true for other providers (Output Cache Provider, Membership Provider, Profile Provider, Roles Provider). There is not much advantage in asynchronous code inside web forms or MVC controllers, if the whole ASP.NET pipeline is not asynchronous.
                        Since ASP.NET supports asynchronous httpmodules, it…

                        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  ·  General ASP.NET  ·  Flag idea as inappropriate…  ·  Admin →
                        • WebApplicationLibrary

                          Now you can not create a reference to another project (webApplication or ClassLibrary) that has non compiled files (aspx, ascx, cshtml, js, css, config, etc.), which are usually published on the server as is.

                          More precisely, you can create a reference, but when you start the application, these files will not be found, because located in a different directory.

                          For example, if the project A and project B (WebApplication) contains same cshtml-files, they could be placed in a separate project (WebApplicationLibrary?).

                          Usually it is necessary to separate one large project into several smaller projects (modules).
                          Something similar is used in…

                          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  ·  General ASP.NET  ·  Flag idea as inappropriate…  ·  Admin →
                          • Improve bundle syntax on razor cshtml

                            All of these syntax is working, please make an official microsoft version

                            01.
                            @this.BundleScriptsAsOne(@<MyBundle><script type="text/javascript" src="js/navigator/activity.js"></script>
                            <script type="text/javascript" src="js/navigator/jquery-ui-1.8.13.custom.min.js"></script>
                            <script type="text/javascript" src="js/navigator/prettyphoto.js"></script></MyBundle>)

                            02
                            @this.MinifyInlineJsAsOne(@<script type="text/javascript">
                            //all code here
                            </script>)

                            I have lot more examples of this
                            but i believe you got the idea

                            This insanely productive for me
                            my inline script is automatically bundled (the bundle is cached ofcourse)

                            I would like to have microsoft version of it

                            Notice that I DO NOT use "~" on src path
                            that character is horrible, no one from php community use it

                            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  ·  General ASP.NET  ·  Flag idea as inappropriate…  ·  Admin →
                            • 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 →
                              • use package management console to add scaffolding item

                                I would be great to be able to add scaffold items by running a command in the package console like Add-Controller -model:Person -views:All -context:MyDataContext -useansyc

                                Or something similar to that. I have used the MvcScaffolding nuget package and it was on the right track but appears it is going by the way side. This some functionality should be include in VS out of the box.

                                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 →
                                • Make WebDeploy CRC check more efficient

                                  Now when we have MSDeployUseChecksum it works great in terms of precision but slow in terms of performance. This is a problem for a larger websites because it takes up to 4, 10, ... minutes to calculate the checksums.

                                  Here is the idea: combine time stamp checks with CRC.

                                  Algorithm: do a time stamp check first. Then do a CRC check for all found differences.

                                  This will improve performance for some frequent scenarios while keeping the precision.

                                  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  ·  General ASP.NET  ·  Flag idea as inappropriate…  ·  Admin →
                                  • Entity Framework related

                                    How about something like Smart Entities , which hold all the information within itself like its datacontext , where to save, validations, Validation errors and many more. On the consumer side it should expose very simple methods or properties.

                                    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  ·  General ASP.NET  ·  Flag idea as inappropriate…  ·  Admin →
                                    • Multiline parameters code format (Ctrl+k,Ctrl+d)

                                      In MVC 4 project open App_Start\RouteConfig.cs file and paste the following:

                                      routes.MapRoute(
                                      name: "MyName",
                                      url: "MyName/{action}/{id}",
                                      defaults: new { action = "Index", id = UrlParameter.Optional }
                                      );

                                      You will notice the multi-lined parameter list is not formatted correctly (with 4 space indentation bias). Pressing Ctrl+K,Ctrl+D won't work either.

                                      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 →
                                      • resources from db

                                        Give us the possibility to register resources on DB with a built-in resources provider and manager. Without a strongly types like actual resource system. And for sure align this change with model metadata attributes like displayname and any validation rules.

                                        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 →
                                        • Fix resource routing, do not automatically append with controller or area name

                                          src="js/navigator/jquery-ui-1.8.13.custom.min.js"

                                          such relative path will be changed into
                                          {Controller}/js/navigator/jquery-ui-1.8.13.custom.min.js
                                          or
                                          {Area}/{Controller}/js/navigator/jquery-ui-1.8.13.custom.min.js

                                          that is not right, all relative path from javascript or css
                                          should not be appended with controller or area name

                                          and please stop guiding people to use "~" for path

                                          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 →
                                          1 2 5 7 9 16 17
                                          • Don't see your idea?

                                          Feedback and Knowledge Base