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?
What is your way of passing data to Master Page (using ASP.NET MVC) without breaking MVC rules?
This is the connection string saved in web.config:
I am trying to learn MVP
How do you declare global variables in ASP.NET MVC?
I’d like to get stories on how people are handling tracing and logging in real applications. Here are some questions that might help to explain your answer. Frameworks What frameworks do you use? log4net System.Diagnostics.Trace System.Diagnostics.TraceSource Logging application block Other? If you use tracing, do you make use of Trace.Correlation.StartLogicalOperation? Do you write this code … Read more
How can I quickly determine what the root URL is for my ASP.NET MVC application? I.e., if IIS is set to serve my application at http://example.com/foo/bar, then I’d like to be able to get that URL in a reliable way that doesn’t involve getting the current URL from the request and chopping it up in some fragile way that breaks if I re-route my action.
I am using Entity Framework 1 with .net 3.5.
I am not sure what is causing the StackOverflowException when I try to overwrite a get and set function. When I just use the default get and set it works. enum MyEnumType { …. } public MyEnumType data { get; set; } But when I try to add additional data, it throws a StackOverflowException: public … Read more
I have just started to look at the new “System.Threading.Tasks” goodness in .Net 4.0, and would like to know if there is any build in support for limiting the number of concurrent tasks that run at once, or if this should be manually handled.
Cannot consume scoped service ‘Microsoft.EntityFrameworkCore.DbContextOptions’ from singleton ‘Microsoft.Extensions.Hosting.IHostedService’.