Posts

.NET - Register MVC to IIS7

One reason of .NET "HTTP Error 403.14 - Forbidden" is your .NET framework is not register on IIS Please follow these step to register .NET on your IIS. 1. Open command prompt 2. Go to "c:\windows\Microsoft.NET\ Framework64 \v4.0.30319" (64bit) or "c:\windows\Microsoft.NET\ Framework \v4.0.30319" (32bit) 3. Type aspnet_regiis -i ** %windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i ** "aspnet_regiis" will be run under administrator account only. If you are not administrator, please right click on command prompt and choose "Run As Administrator" instead.

C# - How to call Controller in code

C# - How to get Current HTTP Url

JQuery - Radio Button onChange

Apache - Add new port

If your current apache server port is 8001 (http://localhost:8001). Your configuration in httpd.conf is Listen 8090 But if you want to add a new port ex. 8002 (http://localhost:8002). You just only add this code into httpd.conf , save your file and restart apache server . You'll access a new port. The code is: Listen 8002 <VirtualHost localhost:8002> DocumentRoot D:/myNewWebSite/ </VirtualHost>

Javascript - Calculate Time Difference

Reference From: Calculate Time Difference with JavaScript [Stack Over Flow]

Android - Layout Error - Incorrect line ending

In layout file (xml file) if you found error: Incorrect line ending: found carriage return (\r) without corresponding newline (\n) . You should remove "\r", "\n" in your xml file. To solve this error , you can press "Ctrl + Shift + F" to remove "\r", "\n". It's so quickly.