Larry Steinle

January 3, 2015

Executing Generics with Dynamic Parameter Types

Filed under: C,VS.Net — Larry Steinle @ 8:22 am
Tags: , ,

Today we will learn how to instantiate a generic class and execute a generic method without knowing what class type to use when instantiating the generic (i.e. new GenericClass<DynamicParameterType>();).
(more…)

July 26, 2014

Mixed Authentication

Web sites are usually created for an intranet user or an internet user. This article explains how to create a single site for both intranet and internet usage while retaining the benefit of single sign-on for internal connections without compromising the security of external connections.

(more…)

Advertisement

June 28, 2014

Big Brother, Little Brother or No Bother?

Filed under: C,Security,VS.Net,Web — Larry Steinle @ 1:07 am
Tags: , , , ,

Ever see the message, “Your IP Address has been recorded?” In this article we will review what kind of information a web site can gather about you, why a web site may need this information and how to get the information using c#.
(more…)

Web Information

Filed under: C,Security,VS.Net,Web — Larry Steinle @ 1:06 am
Tags: , ,

An ASP.Net Page provides simple, convenient access to HTTP Context data like Request, Response, Server, QueryString and Cookies to name a few. While re-factoring code to improve reuse often I find a need to move code from the web page and into a reusable class. (more…)

January 6, 2014

Required Automatically Enforced On Input Tags in Internet Explorer

Filed under: VS.Net,Web — Larry Steinle @ 8:18 pm
Tags: , , , , ,

A month ago I discovered an odd behavior while regression testing a web application. When I typed the exact value that is in the title attribute of an input tag the field became required disabling form submission until the value was changed. The new behavior had me stumped until I realized it only happens in Internet Explorer 10 and greater.
(more…)

November 11, 2013

Supercharged Html5 AutoFocus Fallback

Filed under: VS.Net,Web — Larry Steinle @ 8:32 pm
Tags: ,

The HTML5 specification introduces several helpful additions. One of my favorites is the autofocus attribute. This attribute ensures that the cursor is placed inside the first input, select or textarea tag containing the autofocus attribute.
(more…)

October 25, 2013

jQuery Support for IE 10 XMLHttpRequest

Filed under: VS.Net,Web — Larry Steinle @ 12:47 pm
Tags: , , , , , ,

In my previous article, Undefined XMLHttpRequest.responseXML.xml, I explained that IE 10 no longer returns an XML Document object for xml responses but instead returns a DOM Document. Today’s post is a continuation demonstrating how to get an XML Document from a web service using jQuery.
(more…)

October 14, 2013

Undefined XMLHttpRequest.responseXML.xml

Filed under: VS.Net,Web — Larry Steinle @ 6:14 pm
Tags: , , , , ,

Today I encountered an interesting AJAX problem. I had code that worked perfectly in IE 7, 8 and 9, but not IE 10! So this post is for the die-hard JavaScript programmers out there who are scratching their heads wondering why their AJAX calls stopped working.
(more…)

September 8, 2013

Coding On a Thread and a Prayer

Filed under: C,Security,VS.Net,Web — Larry Steinle @ 12:28 am
Tags: , , ,

Threading is a powerful concept growing more critical for application development. Modern computers aren’t always faster than computers from even four years ago. Instead, computer manufacturers focus on packing more CPU’s into a smaller package with the idea that workload split across many chips will run on a magnitude faster than the fastest chip. This performance gain can only be realized when an application is intentionally designed to take advantage of the multiple cores. As you begin working with threads, however, you will quickly realize that you must design your applications on a thread and a prayer!

Today’s article will be a little different from previous articles I have written. Instead of explaining what a thread is and how to use it I will be reviewing the various issues I have encountered while working with multiple threads and how I have resolved those issues. I trust that today’s article will help others who have encountered these same issues while developing multi-threaded applications.

(more…)

March 25, 2011

C# IsNumeric Function

Filed under: RegEx,VS.Net — Larry Steinle @ 2:32 pm
Tags: ,

I have been a Visual Basic programmer for the last ten years. I truly enjoy writing in this language. However, I also write software in C#. One of the things I have noticed that is missing from C# is a simple routine that tells me if a value is a number. Of course I could reference the Microsoft.VisualBasic namespace. Since I don’t want to be ostracized by the C# community I created a C# IsNumeric function using a regular expression instead.

(more…)

Next Page »

Blog at WordPress.com.