Unicode and ScrollKeeper
Another nagging issue solved - although it reintroduces a previously solved nagging issue - sigh.
A few months ago, I was getting complaints from clients that had lengthy forms that when I used an autopostback from a dropdownlist the screen would return to the top of the form rather than where they were. Some digging quickly showed that this was a known ASP.NET issue, and there were a few ways around it, all hacks. Microsoft gave their own version with SmartNav, but all the discussion said it sucked, so I looked around and found an article (http://philiprieck.com/blog/archive/2004/02/11/ScrollKeeper.aspx) that I tried and it solved the issue. I was impressed because it was really easy to use.
Fast forward a few months. I've used the Scrollkeeper code in a number of projects and have had no problems with it. But with this one site we just launched, everytime you posted something with Unicode characters in it, it lost the unicode and replaced it with a ?. I tried EVERYTHING I could find on encoding issues with ASP.NET, the editor we were using, anything and everything. Probably spent close to 10 hours trying to solve it. Finally, today, I figured out that it was the ScrollKeeper code that was causing the issue. As soon as I took it out everything worked fine.
You might be wondering why I didn't try that earlier. The answer is that basically it has always worked before.
Cripes...

0 Comments:
Post a Comment
<< Home