NetDevelopment

About .net development
More asp.net Viewstate filters ...

The background: I've seen a lot of articles lately about viewstate (well, in the last two weeks or so. I'm bad about keeping up with the rss) . Scott Mitchell recently published one article on MSDN all about the viewstate, and (among other things) showed how to send less viewstate. In it he also mentioned that Scott Galloway blogged on viewstate compression using bzip2. Also of note is the Flesk viewstate optimizer.  All of these allow you to send less viewstate to the client, which means that you're saving bandwidth twice -- since the browser sends the viewstate back with the next...

posted @ Friday, February 22, 2008 10:29 PM | Feedback (42)

Glass in Windows Forms

[Update - 9/13/06]  This seems to not work using RC1 - using DwmEnableBlurBehindWindow seems to work fine creating areas of glass, but DwmExtendFrameIntoClientArea does not - you get nothing but a black rectangle.   I'm trying to figure out why and I'll create another post if I do...  if you do, please feel free to comment here or point me to your posting!    I've seen a fair number of questions on using Glass in Vista forms, and I've seen a few answers as well.  However, the answers I've seen involve using Windows.Forms transparent forms support [1].  There's a big downside...

posted @ Wednesday, September 13, 2006 4:57 PM | Feedback (2)

Leaky abstractions can be great

  I’m sure you’ve heard the term “law of leaky abstraction”, apparently put forth by Joel Spolsky (if you’re unfamiliar, please go read it – it’s worth your time). Lots of people have blogged about what leaks, what doesn’t leak, why things leak and so on. To deal with this, people often are in search of creating a “cleaner” abstraction layer that doesn’t leak. And how many times have you seen an internal framework that took way too long to create – time spent refactoring to keep it “clean” by hiding the underlying system ? I think this is a big mistake… Let’s...

posted @ Saturday, July 15, 2006 3:47 AM | Feedback (0)

Heartland DC over

I'm not dead.  I just don't publish many of my posts, becase they seem.... pointless after I write them. Anyway, I just got back from the HDC, and it was lots of fun.   The pre-party the night before, the keynotes by Roky Lhotka and Andrew Troelsen, lots of great sessions, and other cool things.   I hope I can make it next year, surely, and for all you people who missed it - sign up next year as soon as it's announced.... this conference has sold out every year, and fast!  Joe Olsen told me there were over 100 on the waiting list for...

posted @ Friday, October 14, 2005 11:20 PM | Feedback (0)

VS.NET 2005 - Now supporting multiple languages... For the first time!

Back in February of '04, I posted “.Net says - multiple languages supported. VS.Net says - don't try it“.  A quick response by Paul Vick showed that it would probably never be fixed for Visual Studios 2002 and 2003 - but that they'd work on it for Whidbey.    Alas, the beta 1 and multiple CTPs came and went, and the bug continued.  However, I am happy to report that in VS.NET 2005 Beta 2, the problem seems to have been resolved.  My test case now works, and I'm a happy camper. Thanks to the background compilation teams for c# and vb.net!  While...

posted @ Tuesday, April 19, 2005 4:49 PM | Feedback (0)

C# 2.0's Generics - Are we missing some constraints?

I really do like the “Whidbey” generics for both C# and VB.net.  In my opinion, they bring a good solution to some problems with gaps in strong typing to the .net family.  Great stuff, really. However, I'm not happy with one of the constraints on constraints.  I'll endevor to explain.  Hopefully this is either addressed or (at the least) acknowledged by those in the know.  (Or, if I'm an idiot, feel free to let me know in comments) For a good background on C# generics, see this article on MSDN: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/csharp_generics.asp Okay, so let's say I have a generic collection that sorts items:1public class SortEx<T>2{3   ...4    public void...

posted @ Thursday, February 17, 2005 4:19 PM | Feedback (1)

MSDN Universal (-ish)

Rob Caron and Buck Hodges discuss a newsgroup post by Ajay Sudan discussing how Microsoft subscribes to one of the multiple-universe theories...  That is, MSDN Universal subscriptions will become “most” of the software a developer needs, and then you can buy additions to make it complete. Huh?  Let me look up the term “Universal”.  Now, I'm not whining about the cost (well, maybe I am) - I pay for a universal subscription out of my own pocket because it's worth it to me - I know that with that yearly fee, I can go into any client site and have the software...

posted @ Wednesday, January 26, 2005 3:31 AM | Feedback (2)

Smart tags are really, really obnoxious to actually use.

I am sure that VS2005 will improve before release, but I'm fearful that smart tags are the way its going to be..  I've been trying to say it in comments, newsgroups and Ladybug, and I'll say it again here: SmartTags are not productive in the code window.  Bold ( and italic) statment?  Perhaps, but true as well. The Smart Tag has one great feature - it's a visual cue that some action is available on a piece of text.  However, actually using that action takes way too many steps.   1) click the text.  2) Hover over the tiny sliver of an icon under...

posted @ Wednesday, December 15, 2004 1:30 AM | Feedback (0)

CAS's Full Trust - How I hate that name...

[Update 12/14/04] - Because I get a lot of Google referals where I'm a #1 or #2 result looking for how to give a network share full trust with CAS, I'm adding how to actually do it, rather than just complain about the name. So, to give a network share or mapped drive full trust, execute the following at a .net command prompt: caspol -q -machine -addgroup 1 -url file://z:/* FullTrust -name "Z Drive" This will give anything on the “Z“ drive full trust, make the name of the rule “Z Drive“, and put this at the machine level (applies to all users).  You must...

posted @ Tuesday, December 14, 2004 1:55 PM | Feedback (0)

Intellisense Woes. Please Help

I have a problem with Intellisense (no, I love intellisense, I just want it to quit making me type more at times) Create a new windows project.  Add a textbox to the default form.  In the code for that form, create a method.  In that method, do the following: Type  “TextBox1.TopLevelControl“. Press Enter Delete the line that we just typed in. Type “TextBox1.Top=“. There's the problem.  Note that when you hit “=” (or space, or whatever), your line was changed to “TextBox1.TopLevelControl” Ack!  Top is short.  I can type it in.  But now I must hit “.Top<escape>“ or “.Top<up arrow>“ instead.  Makes it really annoying when you're...

posted @ Tuesday, November 30, 2004 1:26 PM | Feedback (2)

Full NetDevelopment Archive