If you use Telerik's RadGrid but don't want to use the default styling template, there's a quick way to apply your own CSS style to it. This may not be as sophisticated as using the skinning feature, but it surely does the trick. The first thing we need to do is to write the custom css style, then assign it to CssClass attribute within the RadGrid markup. We also need to add Skin attribute … [Read more...]
How to Use IIS Express in Visual Studio
Download Microsoft IIS Express 7.5 MSI file. Double-click on the iisexpress_1_11_x86_en-US.msi file and you'll see the IIS 7.5 Express Setup Wizard dialog as shown below pops up. Keep clicking on Next until the last page. Click on the Finish button. You can also install IIS Express from Microsoft Web Platform Installer. Setup Microsoft Visual Studio 2010 to use IIS Express Open … [Read more...]
How to Setup User Access and Roles in Production SQL Server
Setting up ASP.NET membership and roles in development is very easy to do since out of the box, it's already configured to use the built-in SQL Server Express provider. To set it up, you just need to launch ASP.NET Web Site Administration Tool by clicking on ASP.NET Configuration icon in the Solution Explorer or choose the ASP.NET Configuration option from the Project menu. Once you … [Read more...]
Set Default Start Page to Web Forms on a Hybrid MVC and Web Forms Application
As one of ASP.NET developers ever asked to upgrade an existing ASP.NET WebForms 3.5 application to ASP.NET 4 and added ASP.NET MVC pages to it, I found the tip, Integrating ASP.NET MVC 3 into existing upgraded ASP.NET 4 Web Forms Applications from Scott Hanselman very helpful. After I followed all the steps provided, I was still baffled by the inconsistent behavior of the web app itself. When … [Read more...]
Map Model Classes to Differently Named Tables in Entity Framework
For a few days, I kept running into this minor but annoying issue using EF 4.2 with MVC3 where the web application refused to map a class (Profile) to an existing table (tblProfile) in a database [CPDB] and instead created a brand new table with the same name on a different database [CPDB.Domain.Entities.ProfileEntities]. What confused me even more was I did this step before for another class … [Read more...]