Geeks With Blogs

News

Locations of visitors to this page

View ► Sanjay Uttam [sanjay.uttam@gmail.com]'s profile on LinkedIn


Add to Google Reader or Homepage




Sanjay Uttam Predominantly .NET
Why do I always forget this? $('#someId).dialog('close'); ......

Pretty straight-forward, but a useful snippet of code nonetheless. Given this class: public class AggregateContent { public string Title { get; set; } public string Description { get; set; } public AggregateContent(string Header, string Content) { Title = Header; Description = Content; } } You can use line to create an IEnumerable<AggregateCon... ......

Think this one speaks for itself :) //Get via name attribute. Would be better if you added form ID to selector var checkBoxes = $("input[name=" + checkBoxName + "]"); //Need to use each or you'll only get the first match $.each(checkBoxes, function() { if ($(this).attr('checked')){ //do stuff } }); //Get via class name. Would be better if you added ......

Just ran into this one. The following is the code I was working with:$.ajax({ type: "GET", url: 'http://services.somewhere.... data: { 'param1':'something', 'param2': 'somethingElse' }, cache: false, dataType: 'json', success: function(view) { alert('success'); }, error: function(xhr, ajaxOptions, thrownError) { alert(xhr.status); alert(xhr.responseText); ......

Eventually you're going to need to search their source-control for latest changes given some parameters. I recently came across a couple of handy ways to do this, using TFS Powertools (and Powershell). First, ensure you have the latest version of TFS Powertools installed. Also ensure you have included Powershell CmdLets when you install (or make sure ......

I'm currently reading the second edition of _Code Complete_ from cover-to-cover. More on that later, I'm sure - but for now I'll just say that you should read this right now if you haven't read it already. This is one of those books that you should really just leave by your dev machine. In any case, Steve McConnell mentions the importance of making ......

I received the following error yesterday: "Unable to start debugging on the web server. An authentication error occurred while communicating with the web server. Please see Help for assistance." I tried a fair amount stuff (technical term) including items outlined on Ryan Farley's post regarding the message. What ended up working [for me] was posted ......

Was doing my daily research today and learned a couple of new and interesting things. A while back, I wrote a post about rendering options using .NET 3.5 SP1's charting component. I outlined a few of the more conventional/out-of-the-box methods (temporary directory, binary streaming). I also outlined a lesser-known technique in which you stream binary ......

In the first post in this series, I provided a little info on the HandleError attribute in MVC 1. In case you don’t want to flip back, the HandleError attribute can decorate a method or a class and will push your users to a generic errors view provided customErrors is “On” or “RemoteOnly”. There’s a little more to it, but that’s all the background we ......

I’ve been using ASP.NET MVC Release 1 for a bit now, and while it’s definitely not for every application, I happen to like it quite a bit. There has been a lot of activity on MS-centric blogs regarding MVC, but there are still some really mundane tasks that there could be more information on. So, this series of posts isn’t going to be anything crazy; ......

Until redesign of WF 4.0 is completed & released, I’m going to have to put up with this. I’ve been working some WF stuff the past few days. One of the very annoying things about working with the VS designer environment is, well, frankly – the designer. It’s entirely inconsistent. Sometimes, when I need to add a normal property (not a dependency ......

UPDATE: Please see first comment to do this the "safe" way... It took a bit for me to get comfortable enough with LINQ-to-objects to write ‘queries’ off the top of my head…but once you’re used to it you realize it’s much more concise, easier to interpret/read, and well..it’s less code. Here are some real quick examples… This first example selects the ......

Just a quick tip that I found handy while doing some writing yesterday; chances are if you’ve played with LINQ you probably wrote something like this… var outputString = from s in inputString where s.Length > 1 select s; //Do some stuff with outputString in your method... Code like the above will work perfectly well if what you’re going to work with ......

That MS decided to totally blow it up in .NET 4.0. (weblogs.asp.net link, S/O link). Yes, that’s right, they are totally re-writing WF 4.0 from the ground-up. As the first link states, this could be for any number of reasons including lack of adoption and the perception that WF is just too complex – which I happen to agree with. 3.0/3.5 workflows will ......

Was doing some research this morning, as usual, and came across a post from Giulio Bai on jQuery performance tips. A lot of his tips are things I’ve heard elsewhere (no offense!), but one that I haven’t seen anywhere and for some reason surprised me is that using a the JavaScript provided for() loop is considerably faster than using jQuery’s each() ......

Copyright © Sanjay Uttam | Powered by: GeeksWithBlogs.net