What is the difference between Request.UserHostAddress and Request.ServerVariables[“REMOTE_ADDR”].ToString()
Here I can use either of these 2 methods. What are the differences and which one should I use?
Here I can use either of these 2 methods. What are the differences and which one should I use?
When it comes to implementation, how should i decide to go for an base type or an Interface ? I tried to work out on few examples but i don’t get the complete idea 🙁
I am storing all my dates in UTC format in my database. I ask the user for their timezone and I want to use their time zone plus what I am guessing is the server time to figure out the UTC for them.
I’m troubleshooting restarts in an ASP.NET application. The application is restarting about 20 times a day. We strongly suspect one part of the application because the restarts began when this particular feature when into production. I’ve added some logging to those pages using the log4net library, but I’m having trouble interpreting the logs.
I try to do the following in my web.config:
I have controls inside a UpdatePanel like this
I have problem where I can’t apply the style in CSS in my ASP.NET MVC application.
The behavior is it applies for the first time and then the subsequent changes to the CSS is not getting reflected in my _Layout.cshtml. I am not sure what I am missing here.
I have an ashx file (implementing the IRequiresSessionState interface) storing a value to session state like so:
I am having an issue with IIS express or Visual Studio 2013.
I have working ASP.NET MVC 4 project. I want to add to this MVC project 2 .aspx pages of another WebForms project. I have several questions: