How to execute raw SQL query using Entity Framework without having to use a model?
I am trying to learn C# ASP.NET MVC 5. And I am trying to use Entity Framework for everything I do.
I am trying to learn C# ASP.NET MVC 5. And I am trying to use Entity Framework for everything I do.
I want to show in a TextBox only hour and minutes
I’m not able to bind my dropdownlist present in edititem template . I am getting null reference when i try to access it.
I created ASP.NET user control with javascript function :
I am trying to get the IP address of client machine using C#. I am using the below code to get the IP address :
What different ways are Machine Keys useful in asp.net?
I think the following are correct but thought there may be more.
I have a issue here. In my web app i have a page that starts another thread for time consuming task. In this new thread i have a call to one of my architecture methods (Inside another project – an architecture project). The problem is: in one of this methods i access a HttpContext.Current.Session field. But when i launch the application a exception is thrown saying that this object (HttpContext.Current.Session) has a null reference. How could i set the context of the new thread the same as HttpApplication context in order to access HttpContext.Current.Session ?
By using the following code
I want destroy all sessions at one time. I have tried Session.Abondon() method but I don’t know why this is not destroying all the sessions.
So, ASP.net has the concept of an ‘application root’. It is the path part of the URL that corresponds to the root directory that is set for an application in IIS. The tilde character (~) maps to that path in ASP.net URLs, so if ASP.net thinks my application is at /MyApp, something in a server control whose URL I give as “~/Scripts/script.js” will resolve to (and be sent to the browser as) “/MyApp/Scripts/script.js”.