asp.net

This tutorial will show you how to make the ASP.NET forms authentication work with SQL Server using the provided ASPNETDB.MDF file.  Then it will show you how to properly configure your web.config file to use it. *Note – This tutorial will help if you are having trouble getting your forms based authentication to work in… Continue reading

Posted in ASP.
css

There are several tutorials on how to make CSS sticky footers, sticky headers, and sticky sidebars.  This is one.  There is a working demo to check out.

Remember to compensate at the bottom of your page.  If your sticky footer is 75px high, add 80px padding or margin so that the sticky footer doesn’t cover the content at the bottom of your page.  The 2 main CSS elements for the sticky footer are position: fixed; and bottom: 0px;

The important thing to understand about  position: fixed; in a sticky footer is that it’s in a fixed position relative to the element or “container” it’s in. Continue reading

Posted in CSS.
Javascript

Javascript browser detection can be useful.  jQuery had the function “.browser” which would detect the users browser, but it was removed in jQuery version 1.9. They now recommend “.support” for browser feature detection.

*using navigator.userAgent can make you vulnerable to spoofing.  Here is a lengthy article.

 

So you’re not supposed to detect users browsers using javascript, but here’s how. Continue reading

jquery

This post is for beginners.  It shows how to make a basic jquery UI accordion. We will use a predefined jquery ui for the accordion. There is a link to the demo right before the entire code snippet. Below is an image of the accordion: Image of jQuery… Continue reading

css

“CSS clearfix” is often needed to clear floats.

  • Examples 1-3 clear floats by applying a CSS class to a p tag. The p tag holds a “non-breaking space” – ascii code for space is “ ”
  • Examples 4 and 5 clear floats by applying the CSS clearfix class in a different manner. The clearfix is applied to a div tag that contains the floated items.

Continue reading

Posted in CSS.