
Disable browser cache in asp mvc
Here is a simple trick on how to disable browser cache in asp mvc application with an attribute. If you have a base controller just add this to your base and all your request would have Pragma No-Cache public class…
Practical guides on AI agents, LLM security, C#/.NET and Cloud, from Taswar Bhatti

Here is a simple trick on how to disable browser cache in asp mvc application with an attribute. If you have a base controller just add this to your base and all your request would have Pragma No-Cache public class…

To enable https on asp.net mvc, one can use the [RequireHttps] attribute on the base controller if you are using a base controller [RequireHttps] public class BaseController: Controller But what if you want to give an option to the installer…
Read more: Enable https on ASP.NET MVC 2 & 3, through Filters and web.config

Thanks to everyone who came out for the Ottawa .Net Community talk yesterday on WatiN , SpecFlow, BDD, WebDriver, I had a blast. I would like to thank everyone who came out for the talk. Here is my presentation WatiN…
Read more: My talk on WatiN , SpecFlow, BDD, Code and additional material

Was coding some new functionality and though I would post this, so that others can find it helpful. Lets say you have a form that has a checkbox that will update the select dropdown box with different values, when the…
Read more: ASP MVC, Jquery modifying a select drop down with Json data

There are certainly many ways to stub out dependency, using constructor injection, etc etc. Here is one way to quickly stub out ServiceLocator rather than implementing ServiceLocatorStub. Lets say you have code that uses a helper and the dependency is…