gringod

Stories submitted by gringod

CRM4 iFrame Printing(gringod.com)

submitted by gringodgringod(270) 3 years, 1 month ago

One of the problems when printing a form in CRM4 is that any ISV iFrames collapse down to 1 pixel in height. Here is some simple javascript to force the iFrame to not collapse. read more...

add a comment |category: |Views: 9

tags: another

Detecting Document Loaded on window.open()(gringod.com)

submitted by gringodgringod(270) 3 years, 1 month ago

Some simple javascript to detect when a popup window has been loaded from the page that opened it. read more...

add a comment |category: |Views: 25

tags: another

ScriptManager vs ClientScript(gringod.com)

submitted by gringodgringod(270) 3 years, 1 month ago

The benefits of using ScriptManager over ClientScript for dynamically loading javascript with an AJAX request. read more...

add a comment |category: |Views: 98

tags: another

Test-Driven-Porting(gringod.com)

submitted by gringodgringod(270) 4 years, 6 months ago

If you're porting code from one language to another it's a good idea to port any existing unit test to the target language. It can greatly reduce the amount if time required trawling through the old code. read more...

add a comment |category: |Views: 4

tags: another

GrinGod [dot] Com » Blog Archive » Really Simple Dependency Injection(gringod.com)

submitted by gringodgringod(270) 4 years, 7 months ago

Having just started a new job I find it interesting to see the way that the other developers I’m working with do things. One of the things I found in the code was for doing dependency injection. I’m not going to analyse that code as but what I will say is that I managed to replace 10 lines of code with just 3. read more...

add a comment |category: |Views: 1

tags: another

System.IO.Path.Combine()(gringod.com)

submitted by gringodgringod(270) 4 years, 7 months ago

Many, many times in my programming life I have seen people causing themselves all sorts of problems as the try and concatenate paths for file and directories. read more...

add a comment |category: |Views: 35

tags: another

Debugging with Debug.WriteLine And StackTrace(gringod.com)

submitted by gringodgringod(270) 4 years, 7 months ago

A simple tip for making your debugging life easier by combining Debug.WriteLine() with StackTrace read more...

add a comment |category: |Views: 7

tags: another

Roland Weigelt's GhostDoc(roland-weigelt.de)

submitted by gringodgringod(270) 5 years, 11 months ago

GhostDoc is a free add-in for Visual Studio that automatically generates XML documentation comments. Either by using existing documentation inherited from base classes or implemented interfaces, or by deducing comments from name and type of e.g. methods, properties or parameters. read more...

1 comment |category: |Views: 2

tags: another

If broken it is, fix it you should : ASP.NET 2.0 Crash case study(blogs.msdn.com)

submitted by gringodgringod(270) 5 years, 11 months ago

Users of ASP.Net 2 may have noticed strange crash logs appearing in their Application Event log. You may be supprised to know that if you migrated from ASP.Net 1.1 you may have been getting the same crashes previously but due to Microsofts previous logging policy the previous crashes just weren't being reported. This article describes methods to track down the ellusive errors that are occuring when nobody is watching. read more...

add a comment |category: |Views: 13

tags: another

Double Imprecision In .Net(gringod.com)

submitted by gringodgringod(270) 5 years, 11 months ago

The problem seems to be that under certain circumstances the .Net Double data type loose its precision and gives you a number that you weren’t expecting. read more...

add a comment |category: |Views: 5

tags: another

GrinGod [dot] Com » Blog Archive » Playing a wav resource in VB.NET 2.(gringod.com)

submitted by gringodgringod(270) 5 years, 11 months ago

This is a follow-up to my previous post “Playing a wav from a resource in VB.Net“. The previous post was how to get it working in VB.Net for the .Net Framework 1.1. In the .Net Framework 2.0, Microsoft has been kind and provided a System.Media namespace in the core System.dll. read more...

add a comment |category: |Views: 2

tags: another

Extending HttpApplication with session counts and uptime in C#(damieng.com)

submitted by gringodgringod(270) 5 years, 11 months ago

It's sometimes useful to know or display how many people are currently using your web application and how long it's been up for. As web applications normally inherit from System.Web.HttpApplication we can extend this class with a common re-usable class to add the required functionality. read more...

add a comment |category: |Views: 11

tags: another