-
Tip: ToString() for your custom Class
While writing code and then debugging with step by step debugger you often just roll over a variable to see what it contain. With custom class it shows the class name/namespace path by default. And it makes debugging harder. A simple solution to this is to add a override to the ToString function in your…
-
ASP.NET MVC 5: Session not working
Just encounter an issue with ASP.NET MVC 5, the sessions are not working. i.e. when I put a value in controller like Session[“mysession”], it do not shows the same value in Views or in fact anywhere else. Search online, some create custom classes to manage them, and some give different patch, finally got the easiest…
-
PDF Creation: wkhtmltopdf
In past I post about how good wkhtmltopdf is. I have used it for few of my projects. Really it is the cheapest [as it is open source and free] and powerful solution. But it is not the reason I love it. I love this because it is the Easiest solution available. Most of PDF…
-
WKHTMLTOPDF: A Free PDF solution
As any other developer we often find it difficult to get a Website to print something accurately, specially when printing labels for mailing as they are outside the default print area for most browser and no client want to adjust or memorize the print setting to adjust them manually. Also it doesn’t make sense to…
-
Sandcastle: Code Documentation in C#
Over the years I use lot of documentation and those help me build my software with ease. However, never need to build one for my projects as they are not quite often big and what more never need to do so, as they are quite handful of function in complete project. But now in order…
-
GDI+ Generic Error
I see lot of people asking about GDI+ Generic Error. Since this is “generic” error nobody can tell what is wrong with code. So did a work around and get it working. I had this error quite a time in early days of my programming and just found same error in one of junior’s code.…