Quantcast
Channel: Grant Barrington
Browsing latest articles
Browse All 42 View Live

Image may be NSFW.
Clik here to view.

Preventing a User From Submitting a Form Twice

When building web applications, we've had a "defect" reported a number of times where a user presses a button twice in quick succession and causes a postback twice, typically causing whatever...

View Article



Image may be NSFW.
Clik here to view.

How to Run a Website in Partial Trust

Nearly all our websites are hosted up on WebCentral. WebCentral operate all their websites under a partial (hosted) trust environment.Internally we develop all our sites using this partial trust setup...

View Article

Image may be NSFW.
Clik here to view.

Libraries in my toolkit - Another lesson in Partial Trust

IntroductionI compiled a list of the libraries we use day-to-day in my company. There are a couple of home-grown libraries, but most are commercially available, or open source."Yeah great... another...

View Article

EnumHelper - Getting a Friendly Description from an Enum

Wherever possible we use enumerations in our applications. Often the name of the enumeration isn't what you want to print on the screen. It could be because the enumeration is 2 words that have been...

View Article

Image may be NSFW.
Clik here to view.

Reflection Speed Test - How slow is it really?

Whenever anyone anywhere mentions Reflection on a blog post, straight away there is a reply saying "you shouldn't use Reflection as its slow". I thought I'd take a look at how "slow" reflection really...

View Article


Using Reflection to Determine whether an Type is Nullable And Get the...

I've mentioned in a previous post that we use Aspose.Words combined with Aspose.Pdf to create PDF documents/reports in all our applications. To do this we use a method within the...

View Article

Detecting and Preventing a User From Submitting a Form Twice

Users get impatient when something is taking a long time to run server-side. This usually results in having a form submitted more than once. Ok, maybe its not impatience, maybe its that they didn't...

View Article

Table-less layouts with DotNetNuke

We use DotNetNuke as a base for most of our applications. We are primarily in the space of content management, mixed with custom code. DNN handles content management pretty well for all our situations....

View Article


Image may be NSFW.
Clik here to view.

Styling the ASP.NET Wizard Control to have the Steps Across the top

The default style of the ASP.NET Wizard control is not the best. For the sidebar to work, and display all the wizard steps in a wizard requires quite a bit of space. And in all the wizards we end up...

View Article


Image may be NSFW.
Clik here to view.

Screen Scraping in C#

Recently I was asked by a friend of mine to screen scrape a website. What he wanted was the results of a form submission. There were a number of fields on the form (mostly dropdowns), and he wanted me...

View Article

Image may be NSFW.
Clik here to view.

Adding, Changing & Finding buttons in the ASP.NET Wizard Control

A comment was recently left on a previous post of mine asking how to go about adding a button to a wizard and handling the click. I thought I'd answer the question with another post as there is usually...

View Article

Sending the output from Linq to SQL to a Log file

I've recently started using LinqToSql for some of newer projects. The reason its been such a long time before I've started using LinqToSql is because all our websites get hosted on WebCentral....

View Article

Changing the Module title in DotNetNuke on the Fly

This is an extremely short post, buy hopefully it will help others in the situation. (Also if I need to find it again I know where to look)We have recently completed a project using DotNetNuke as our...

View Article


Image may be NSFW.
Clik here to view.

Getting NLog Running in Partial Trust

To get things working you will need to:Strong name sign the assemblyAllow Partially Trusted CallersIn the AssemblyInfo.cs file you will need to add the assembly attribute for...

View Article
Browsing latest articles
Browse All 42 View Live




Latest Images