Wednesday, 19 March 2014

Logging Tools Log4Net vs ELMAH

Both needs configuration files.Log4NetSimple general purpose logging tool.Easy to integrate.Creates text file.Log levels: DEBUG, INFO, WARN, ERROR, FATAL.ProsHighly configurable logging framework.Best used by calling explicitly through code.Can implement exception handling with handlers.Output: file, console, email.Thread-safe.Will not throw unexpected exceptions at run-time potentially causing application to crash.ConsNot reliable. ELMAH...

Thursday, 13 March 2014

Remove first character from string C#

Use substring() method.string str = "/a.txt";str = str.substring(1);Outputa.txt ...

URL querystring with multiple parameters not working - Browser compatibility Issue

When passing multiple parameters as query string, the redirection will work properly in Internet Explorer. This is because the special character '&' is escaped automatically.But in Mozilla, Chrome it will not work.www.example.com/controller/action?a=1&b=2In order to work we need to escape the ampersand special character using Razor syntax @Html.Raw(string).www.example.com/controller/action?a=1&b=2 ...

iOS

Cannot install applications because the certificate is not valid. - iOS 7.1 Enterprise App

Is it rediculous? May be or not. Might be for more security.Any way this error is showing in iOS 7.1. When we see this in first time we will get confused.Install errorError The above alert is coming while installing applications in iOS 7.1.AnalysisFrom iOS 7.1 Apple is enabled...

Saturday, 1 March 2014

How to check .NET Framework version installed in your PC

For checking which .NET Framework is installed in your PC, follow the below stepsSteps:Click on Start.Type regedit in  Search and files area.You will see Registry Editor popup window.Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework.You will see different version which are already installed.Check the latest version installed in your PC. :) ...

Pages (3)123 »