ASP.NET MVC – The Issue with Global.asax and Load Balanced Servers

I was troubleshooting one of the issues where my ASP.NET MVC app was working in DEV environment (Win 2k3 single server) and when moved to Pre-PROD (Win 2k3 load balanced) we started getting 403 Forbidden errors. There were quite a few possibilities: The application was configured to use Windows Authentication with Role Bases Access. Roles…

0

ASP.NET MVC – Creating a Single Select List box and showing tooltip for lengthy items

Challenge 1: Even when you set multiple = false the list box still ends up as <select multiple>… in the resulting HTML. http://stackoverflow.com/questions/351483/how-do-i-create-a-listbox-in-asp-net-mvc-with-single-selection-mode Here is how I created a list box that allows only single selection: <%= Html.DropDownList("lstStates", Model.USStates, new {@size="40", @tabindex = "2", @style = "width: 500px; height:300px" })%> Challenge 2: I was using…

0

User authentication against AD and Roles based authorization in ASP.NET MVC – Part I

It is a common scenario in an enterprise application when as per the requirement we have to authenticate the users against their AD account and authorize them against application specific roles. Especially for the applications that are intranet facing, the customer generally opts for utilizing the existing infrastructure to support Single Sign On kind of…

12