Categories: ASP.Net Posted by yeejie on 2/19/2010 1:43 PM | Comments (0)

Do you have this script that is not running in IE8:

var mybtn = document.createElement("input");
mybtn.setAttribute("onclick","alert('Javascript not working!');");

OR

mybtn.setAttribute("class","someCSSclassthatnotworking");

If yes, try this instead:

mybtn.onclick = function() { alert('Javascript working now in IE8!'); };

mybtn.className = "finallyCSSworking";

Credit to the following sites: http://www.tgerm.com/2009/02/javascript-ie-setattributeclass-or.html and http://stackoverflow.com/questions/1019078/how-to-set-onclick-attribute-with-value-containing-function-in-ie8

Categories: ASP.Net Posted by yeejie on 1/11/2010 8:27 AM | Comments (0)

A great post comparing the differences between ASP.Net MVC validation framework available out there: http://goneale.com/2009/06/25/aspnet-mvc-validation-refresh-best-techniques-frameworks/

As I tried, “devermind.com: Client-side form validation made easy (w/ xVal)” so far remains the best validation framework as it combines Data Annotation, jQuery and xVal methods together.

Categories: ASP.Net Posted by yeejie on 1/8/2010 7:58 AM | Comments (0)

Pasted from http://weblogs.asp.net/hosamkamel/archive/2008/11/20/asp-net-mvc-project-and-team-build-issue.aspx. Original Author: Hosam Kamel

To get the MVC project build successfully with the team build make sure of the following:

- Your build server has the WebApplication targets file located in <Program Files> \MSBuild\Microsoft\Visual Studio\v9.0\WebApplications , if not . copy this file from your development machine to the same path in the build server.

- You have installed ASP.NET MVC framework in the Build server, this is the most important step otherwise you application will not build successfully in the team build you may faces some errors like :

error CS0234: The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)

or

Controllers\RuleController.cs(31,10): error CS0246: The type or namespace name 'AcceptVerbs' could not be found (are you missing a using directive or an assembly reference?)

** Update

This will work with Beta version of ASP.NET MVC since the installation register the MVC assembly in GAC.

For preview versions , you can reference the DLL from your build project

<AdditionalReferencePath Include="C:\Program Files\Microsoft ASP.NET\ASP.NET MVC CodePlex Preview 4\Assemblies" />

Categories: ASP.Net Posted by yeejie on 5/20/2009 8:00 PM | Comments (0)

Some resources to refer if you can’t get your ASP.NET website to run on IIS 7.0 (Windows Vista):

  1. http://mvolo.com/blogs/serverside/archive/2007/12/08/IIS-7.0-Breaking-Changes-ASP.NET-2.0-applications-Integrated-mode.aspx
  2. http://learn.iis.net/page.aspx/381/aspnet-20-breaking-changes-on-iis-70/
Categories: ASP.Net Posted by yeejie on 4/17/2008 8:00 PM | Comments (0)

The “Select a Master Page” option is only visible if you created a website project. To overcome this shortfall, choose Web Content Form instead of Web Form.

Categories: ASP.Net Posted by yeejie on 4/10/2008 8:00 PM | Comments (0)

Repair the IIS mappings.
To do this, run the following command:

1) At the command prompt, type the following, and then press ENTER:
    “%windir%\Microsoft.NET\Framework\version\aspnet_regiis.exe -u”
2) Run “%windir%\Microsoft.NET\Framework\version\aspnet_regiis.exe -i”
3) Run “IISReset”

For more information:
http://support.microsoft.com/default…;EN-US;q306005
http://www.ironspeed.com/Designer/4.3.0/WebHelp/Part_VI/HTTP_Error_500_Page_Cannot_be_Displayed.htm