Archive for the ‘Form’ Category

This article describes a correct and smarter way of implementing Role based authorization with Forms authentication in ASP.NET.
Prize winner in Competition “Best overall article of May 2009”
Prize winner in Competition “Best ASP.NET article of May 2009”

Problem Space

Sad, but true, “Forms authentication in ASP.NET does not directly support role based authorization”. If you have ended up implementing Forms authentication along with configuring authorization rules for “users” and “roles” in the web.config, you are going to see the access rules working fine for “users”, but, not working at all for “roles”. You might have thought, there must be some way to specify user roles in the famous FormsAuthentication.RedirectFromLoginPage(), or, any other method. But, there isn’t!



Read Full Post »

Illustrates replacing custom authentication with ASP.NET Forms Authentication.


One of the first projects I tackled with .NET, after doing the customary “Hello World” example, was converting a commercial ASP application into ASP.NET.

The application tasks were to process, store and acknowledge (via email) customers’ answers to a competition question and to provide a secure area for company officials to view customer entries and send out bulk mail.

Apart from learning how to implement each step in ASP.NET, I also restructured the application to make it more object-oriented. For the secure area of the site I initially more-or-less faithfully reproduced the original functionality. Then I discovered and investigated ASP.NET’s built-in Forms Authentication.


Read Full Post »

qTip is an unobtrusive jQuery tooltip plugin with a list of nice features.

It has:

  • rounded corner support without use of any PNGs
  • very flexible tooltip pointers are as they can be positioned in several locations
  • 5 ready to use stylish themes & you can create your own easily
  • support for not-overlacking. How close the tooltips are, they will preserve their stacking order
  • ready to use effects: fade, slide, glow & custom ones can be created

qTip jQuery Tooltip Plugin

The plugin is cross-browser & tested in all major bowsers. It is also very well-documented.


Read Full Post »

DataTables is a jQuery plugin for adding advanced interaction controls to HTML tables.

It can add pagination, filtering and multi-column sorting functions to tables with ease.

DataTables jQuery Plugin

The plugin has multilanguage support & many features that make it flexible:

  • Smart handling of column widths
  • State saving
  • Hidden columns
  • Dynamic creation of tables
  • Ajax auto loading of data
  • Alternative pagination types
  • Sorting column(s) highlighting


Read Full Post »

Position Absolute is sharing an easy to use form validation engine built with jQuery.

It offers a flexible way of displaying errors that will possibly match any type of form design. When the script detects an error, it creates a div, positions it at the right-top corner of the input & displays it like a tooltip with the error message inside.

jQuery Form Validation

Validation rules are created inside the classes of every input field like:

<input class="validate[required,custom[onlyLetter],length[0,100]]” name=”first” type=”text” /> (more…)

Read Full Post »