Server.HttpEncode vs. HttpUtility.HttpEncode

Just use HttpUtility.Encode because Server.HttpEncode simply calls HttpUtility.Encode. Basically if you are trying to display text back to the user and these text are either straight from database, or from databound objects, or from current page textbox entered by user, etc, use HttpUtility.Encode, mainly to prevent script-injection and handle specials characters such as blanks and … Continued

ASP.NET AJAX username availability check

ASP.NET AJAX username availability check with UpdatePanel ASP.NET AJAX username availability check without UpdatePanel I used UpdatePanel in our project and it works alright. I didn’t read either of these posts when I did it. It was not too hard to figure out even though I did remember myself having some issues. However, the web … Continued

Modal Popup with Rounded Corners

If you set the TargetControlID of both ModalExtender and RoundedCornerExtender to one panel, ASP.NET will not like it, probably because of some JavaScript clashes. One simply trick is to have an inner panel, surrounded by an outer panel. Set the outer panel’s background color to transparent and let the inner panel have the rounded corner … Continued

ScrollBar styles

Apparently scroll bar styles are only supported by IE. Diddn’t realize this until today. Regardless, I think it’s a pretty cool thing to have and Firefox and Safari will eventually adopt it. Here’s a site to generate the CSS codes. It’s pretty darn good… http://www.spectrum-research.com/V2/projects_scrollbar_generator.asp http://www.spectrum-research.com/V2/generators/scrollbar.asp By Bryan Xu

CSS CSS CSS

Don’t know how to make your website pretty? Nothing new, it’s always a struggle… TURN FOR HELP AND LEARN! WebDesignerWall – This site is just GOD LIKE. It’s beyond awesomeness!! Don’t know how? LEARN!! Below are several other misc sites, none has tutorials except the first couple, but one of the best ways, and the … Continued