Pages by tag

17 pages are tagged with Coding 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!

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.

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.

VS Code Printing Fix For PS printers


The new IDE print function is really nice, esp since it can show line numbers that make reviews easier to follow.

If you do a print and get the line numbers right but your source code is all gibberish, look to the printer-specific options in the Advanced form of the printing popup.

The graphic below shows that the typical office HP PS printer will default to having TrueType fonts be substituted with a device font that is loaded on the printer. Most likely the device "hardfont" will not map characters exactly. Just switch the option to "Download as Softfont" and your code will come out the way you want it.

Remote configs for dlls & autodeploys


Config files for .Net programs are great, just stick your required dynamic information (connect strings, global defaults, etc) in an XML file in the same location as your executable and read them with the built-in methods.

But there are limitations:

1) By default, they're only for exe's, dlls can't use them

2) An AutoDeploy app is hosted in a special cache on the user machine, and the config from the server location doesn't follow it around.

Here's the answer...

<< 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