Geeks With Blogs
Rajiv Popat blog Cookbooks And Articles Code Cookbooks And Articles
Back To The Basics And Beyond! Generic Methods and Multiple Constraints.
A couple of days ago I was asked if there was any way by which I could overload a method to "return" more than one type. If I was in a class room, or I was teaching a programming class (I've done that for some part of my life :)) my instant answer would have been "No." And then I would have proceeded to explain why the whole idea was not valid in the Object Orientation world. However, this question was not coming from a high school student. In all probabilities it was coming based on a practical ......

Posted On Saturday, September 9, 2006 1:14 PM

Nullable Types, What does int followed by Question-mark (int?) Mean? What's with the Double Question Marks and Other Syntaxes?
I first read about Nullable Types around 6 months or so ago. Since I last heard about / used Nullable types, I had completely forgotten about the syntaxes and was completely stumped when I was asked what "int? x" meant by a couple of guys at work. I'll not Blog about the basic concepts of Nullable Types here. I think this MSDN Article does a particularly good job at it. What I'll Blog how ever is the basic syntax which is so darn confusing at times that I've read about it once, seen it getting used ......

Posted On Saturday, September 9, 2006 6:43 AM

Transactions, Identity Columns and Foreign Key Constraint Errors - The Chicken Egg Situation
I faced this problem while using NetTires which I highly recommend for anyone who wants to quickly generate a Data Access Layer using Microsoft Enterprise Library without having to do the grunt work and writing boilerplate Data Access Code. In my efforts to not digress from the Topic I am going to keep some other data access mechanisms that I've used in the past out of the scope of this post and just state that NetTires is a Decent enough Data Access Mechanism I am currently in love with and am using ......

Posted On Friday, September 8, 2006 1:18 PM

Dynamically Calling a Web Service Without Setting Web Reference
This Approach is particularly helpful when one needs to implement loosely coupled integration using Web Services from a Multi Tangent (Application Service Provider Model) type of front end. If each client needs to invoke a different web service and the application needs to pick the Web Service URL dynamically during runtime (depending on the client), it may not be possible to set Visual Studio.NET 2005 Web References to each and every client URL. Just finished writing an article on this @ Code Project. ......

Posted On Tuesday, June 27, 2006 7:30 AM

Hello World Article on Atlas

Just finished posting an Article on Code Project which describes how to quickly get started with Atlas by writting a simple Hello World Program.

Read it here.


Posted On Tuesday, May 9, 2006 10:07 PM

A Minute Saved...
While everyone seems to be talking about the Amazing and new Features of 2.0 like Membership, Generics, Code Snippets, Partial Classes... (the list continues), let me be the guy who blogs about a tiny little new function in 2.0 that will save a developer 1.5 minutes (give or take a minute) of development time and some 3 odd lines of code :). For A Recent Project I had to extract BLOBS stored in DB and write them in the file system. Turns out, there is a cool file system function which just lets you ......

Posted On Thursday, January 19, 2006 2:59 PM

Customizing the Dot Net Nuke Search Input
Customizing - DotNetNuke Search Input - The Problem In a Recent Project I had felt the need to customize the DotNetNuke search input. If you've used DotNetNuke Search Inputs before you might have realized that the search Input Module is a little limiting in terms of customization. So, basically the kind of search inputs that you can have in DotNetNuke (based on what I currently know) are: Of course, you could customize this slightly or you could have another kind with a picture just by changing the ......

Posted On Thursday, April 13, 2006 7:22 AM

TreeView Tweak!
Just came across a tree view tweak which I thought would be worth sharing. So, here it goes – The Requirement: We were using the ASP.NET 2.0 Tree View in one of our projects. Instead on Navigating to a URL when the parent node “link” is clicked we needed the Node to Toggle Collapse and Expand exactly like it does when the tiny + button is clicked. The Solution: Used the TreeView_Toggle Function. So if I want the first Node To Toggle When It’s link is clicked the code looks ......

Posted On Thursday, March 16, 2006 8:38 PM

Copyright © Rajiv Popat | Powered by: