Pages by tag

19 pages are tagged with DotNet

To check more tags, click here  click to open

Regex Ajax Jquery UserControl


This universe is fun.  Last week I was having a conversation with a budd about a validation regex and just a few days later I had the need to dig it out for myself ... lucky I put it on the sitelett (thanks Universe!).

In my case I needed to make a double listbox picker for Keywords.  Over the years I've just used Telerik controls but this is a lean webapp and I didn't want the extra baggage so I rolled my own.  ASCX with serverside needs plus Jquery/JS Ajax hitting an ASMX web service for adding new keywords on the fly without page reloads.

Demo here.  Code and some notes ...[more]

ASP.Net limited textarea for Ajax


Huh?  What?

Oh sorry, been heads down the past few ... months?  Sheesh.

Ok.  There is one thing I did the other day that I'll forget if I don't put it here.  I'm working on a few new sites and all of them at one place or another need a textarea with a character limit.

I know, we've all done these since before the beginning in one way or another.  It's no big deal to just check the length  in the postback or add a key event javascript method with an alert or whatever, and these days even adding a countdown span means just grabbing someone's freebie jquery sample. 

Those all work fine mostly.  But for this project there was a twist that threw me a fail...

Winform Designmode


Coding out and about without my libraries drive and hit that old, old, old bug of user controls not making it easy to tell you when you're in Designmode if you nest subclassed UCs. Felt like a noob fool, had to waste time running through all of the forum posts of hacks that still don't work.. till I found this one. It's not mine but it's better than mine in that it works (for me) across the nesting scenarios even when called from a grandchild control. Now I'm glad I forgot my drive :).

The code is in an Anonymous comment, in case that page goes away, I put it here.

Why does the simple DesignMode feature that was spot-on in the VB5/6 era still elude the VS team after ten years of .Net? 

Thanks Anonymous!

LA DotNet Developers Meetup Tech Trends


Interesting Los Angeles Developers Meetup at Blank Spaces on Wilshire. John Shiple of talking about Tech Trends and getting your business to be a business.

Here it is in Flash audio. (iPeople please use a 'puter or android. Jobs is dead but his restrictions on you live on)

WROX Professional ASP.Net MVC3 review


Wow.  If this is what a "Professional" is now expected to know, I'm sad for .Net.


ASP.Net Oracle Padding Patch


Last month an alert went out from Microsoft about a severe vulnerability in ASP.Net.  A quick workaround was stepped through but the kernal of the issue remained.

I just got this email blast from the DotNetNuke folks (very very nice of them even as I am no longer a Nuke user) about the official patch now being available as direct download AND NOW Windows Update.

No matter your OS, if you run ASP.Net you should get the updates.  If money is on the line then of course you have to check the fine print and scan the comments of Scott Guthrie's blog post and do extra testing ASAP in case you are doing some off-kilter code that hits a boundary of the patch. 

Color to HEX


It's not a huge deal anymore to use Hex values for colors in web pages, since Netscape3+ and IE both handle basically the same set of user-friendly color text values, but sometimes we need to feel like getting geeky helps cover the bases.

As with most things on the sitelett, we found that we were typing this out by memory just often enough to make it tedious yet not often enough that our fingers could do it while we were watching TV. So we put it here for our future cut & pasting, and if it helps you too then so much the better.

Kill the web backcache


Still caching after all these years

I was making a forms based ASP.Net login system, a pretty typical one that used an ascx across all pages to display a hyperlink "Log In" or "Log Out" depending on whether HttpContext.Current.User.Identity.Name had a value or not. The "Log In" link would redirect to a logon page and the Log Off link would of course redirect to a page that killed the authentication cookie in it's Page_Load and gave the user the message that they were logged off successfuly.

When I did the log offs, I killed the ticket and just for good measure called Session.Abandon, and with that extra line I felt smug that I did more than I needed.

Dynamic Flat DropDownListbox, the easy way!


Happy New Year!  Here's the code for a SOLID flay/popup winform combobox !

Where's the winform splitter?


The XP GUI flat style (some call it the Retro-Apple style) is neat and clean.

The splitter control is a nice addition.

But together, they can be annoying to the users ... at first.

The splitter offers three border styles: "None", "FixedSingle" (draws a line around the rectangle) and "Fixed3D." Problem is that the 3d option does what most of us feel is the opposite of what we need, it insets rather than popping up.

<< 1 2 >> 
who is smith     contact smith     rss feed
Since 1997 a place for my stuff, and it if helps you too then all the better