Thursday, March 26, 2009

Ajax Calendar display problem

The Ajax calendar might display something like this



This problem is due to padding in the css file.

To set this right, you can append


div.ajax__calendar_days table tr td
{
padding-right: 0px;
padding-left: 0px;
padding-bottom: 0px;
padding-top: 0px;
}


to the css file.

The calendar now looks like this

Saturday, March 21, 2009

How to set script url`s relative to the website in masterpage

Prepending "~" to the URL says that the URL must be website relative. But this works only for css files, not for scripts. One solution is to use a form with runat="server" and place a script manager as follows

Failed to access IIS metabase problem

ErrorDetails: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase

Cause:
When you install IIS AFTER .NET 2.0 framework, the rights of the ASPNET user had not been set correctly.

Reset the IIS Registry settings by running the command "C:/Windows/Microsoft .Net/Framework/V2.0xxx/aspnet_regiis -i"

Thursday, March 12, 2009

Add View Dialog in Asp.NET MVC not showing View Content option or create a partial view

When creating a strongly typed view in the Asp.NET MVC application, if the add view doesnot look like this




Its the problem of the MVC framework version. i.e. you may be using a beta version. To solve the problem install Asp.net MVC RC1.