If we have a decimal representing a price, for example, then we want to display the decimal to two decimal places. We used `ToString` method with the specifier `F` for that:
Tuesday, 11 November 2014
Friday, 7 November 2014
In Nlog, it is possible to have a specially named logger which works independently of all the other loggers. Below is the `<nlog>` element that has a logger named `MyLogger`. Note that it is marked as `final`, therefore all the loggers below it will not process the log message.
Below is how to instantiate `MyLogger`:
Following is a `web.config` file with NLog configuration, with two targets, `debugger` which logs to the Output Window, and `logfile` which logs to the log file path specified:
Here is a sample test web page's code behind:
Wednesday, 5 November 2014
Wednesday, 15 October 2014
If you had a left-floated div `l` and a right-floated div `r` in a container, but you wanted everything underneath it to not to go left or right of either `l` or `r`, then you want a special container css class which stops this. with the `whole` class not defined, it looks like so:
Thursday, 2 October 2014
If you are using Windows authentication within your `web.config`:
then you must also enable Windows Authentication within the project properties. Strangely enough there are two windows for this. The first one is when you right click the Project and go to `Properties` (or `Alt-Enter`):
The other one is the `Properties Window` which can be opened by clicking on `VIEW` → `Properties Window` or alternatively press `F4`. Here is how that looks:
Change `Windows Authentication` to `Enabled`.
This blog post was based on Saravanan's blog post.