Geeks With Blogs
Old blog. Blog moved to thomasgathings.com I would delete this...but I don't see the option
I dug up one of my first jQuery plugins and thought I would share. //thomas gathings //jquery plugin to enable confirmation of unsaved changes on common input elements. //apply to an ancestor, such as fieldset, div, or form. jQuery.fn.confirmUnsavedCha... = function() { var $obj = this; var saving = false; window.onbeforeunload = function() { //if ......

If you have a generic ViewModel, such as ContosoViewModel<TModel&... you can share this with the master page, to an extent, by implementing an interface to the data your shared master might need. This will allow you to avoid using things like ViewDataDictionary for something like a 'Current Customer Id'. so, here's a sample class signature for a ......

How do I pass dataset results to a subreport? In the past, my answer warranted too heavy lifting: duplicate filtering logic and query scope in the subreport. I came across this need as I was considering reusability in reports by leveraging subreports. This particular project, like many, has parent/child relationships. In reporting, this manifests in ......

With ASP.Net MVC, you can easily use AuthorizeAttribute to control access to controllers and actions. I found it limiting within the context of Windows Authentication. First, I wanted to configure the roles outside of an attibute. Properties of AuthorizeAttribute, as with all attributes, must be set a design-time, such as [Authorize(Roles = “MyCompany\AppAdmin”)]. ......

I was working on a small web application that was built very quickly using Linq to SQL and I wanted to ensure that a particular page wasn't loading more data than needed into memory. This particular page had a simple GridView, and in the one and only item template, there was an ASP.Net Image (along with some other stuff). The data source was of type ......

If you found this, then you know I'm talking about Microsoft Identity Integration Server (MIIS) / Identity Lifecycle Manager (ILM). A reverse join is a concept that attempts to solve problems arising from joining existing connector space objects to newly created metaverse objects. Microsoft has a great white paper on the subject. I discovered that I ......

Build automated unit tests for your identity management solutions just like you would a normal development project. Trust me. Here's why: Test Driven Design: design your test first. do your craft until the test passes. Comfort and assurance: you know because you've run them 1001 times. others can run them too. Free documentation: requirement and business ......

I have a simple page which displays the current users active roles. Silly me, I thought a good name would be 'Roles'. Turns out, this caused a namespace collision, I think, with the static class System.Web.Security.Roles. The namespace 'System.Web.Security' is included by default with ASP.NET 2.0 code-behinds. Also of interest, by default there are ......

Anybody doing integration with JD Edwards? We are on OneWorld 8.0. We have purchased adapters from iWay Software but I am having some pains getting up and running, namely while attempting to connect through the JDEdwards adapter. I get the following exception: Error getting target [JD Edwards] Failed to connect....com.jdedwards.sy... ......

I see a lot of trouble user have out there when using impersonation under ASP.NET (<identity impersonate=”true” />), namely something such as Access to the path "C:\WINDOWS\Microsoft.NET\F... ASP.NET Files\root For our situation, we are using specified credentials ( e.g., <identity impersonate="true" userName="MYDOMAIN\applicat... ......

Using a post-build event can be a time saver. You can create command lines in the project property pages (right-click the project, say your winform or console, in the solution explorer and then choose 'Properties'). Under common properties, choose 'Build Events'. Then click the ellipsis beside Post-build Command Line. In this dialog, you can run commands ......

As i toiled over this, I was sure there was some problem with the InfoPath Automation I was doing: infoPathApplication = new ApplicationClass(); oXDocumentCollection = infoPathApplication.XDocume... oXDocument = oXDocumentCollection.NewFro... The symptom: InfoPath just hangs right on this line. Now, to put some context around ......

ever needed to something like this: for(int i=0;i<names.Length;i++) { displayNames+= names[i].ToString +“, “; } displayNames = displayNames.SubString(disp... 2); That stinks having to worry about that last concatentation. Builder pattern to the rescue. This class lets you concatenate strings with any character or string ......

the following class cleans up ugly code that tests whether value a is between value b and value c. it works with any class implementing IComparable. so stuff like this: if(myDate >= startDate && myDate <= endDate) .. becomes this: if(goodInterval.IsInInterva... ========================= <code> using System; namespace x.Utility{ ......

scratching my head for the past few days... in our current SOA migration, i am running into an intrestring quandry. take a composable web service, GetStatusReports. so just how can i provide a suitable authentication and authorization schemes that agree with InfoPath AND BizTalk, where both are consumers of this service? InfoPath: Supports Integrated ......

Copyright © Thomas Gathings | Powered by: GeeksWithBlogs.net