If the name is like "david" it comes within the allotted space....
but if the name is like "john pal abraham desouza" the allotted space increases automatically..

So i need to have the name occupied in the allotted space by auto resizing the font..
Suggest me a solution..
['https://Stackoverflow.com/questions/1860155', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/174796/']
It sounds to me like what you want to do is roll your own Custom .NET Membership Provider.

It will allow you to use the built-in ASP.NET Authentication/Authorization attributes on your Controller Actions while giving you complete control over the implementation inside the provider (which will allow you to code it to meet the requirements stated above).

Direct from MSDN...

[Implementing a Membership Provider](http://msdn.microsoft.com/en-us/library/f1kyba5e.aspx)
If you go ahead and create your own custom solution, you will have a better idea of how difficult it is and what features you want. This will help you to evaluate off-the-shelf solutions for future projects.

OTOH, spending time developing functionality that is already readily available means you won't be spending that time working on the major functionality of your project. Unless authentication and authorization are a major component of your project, you might consider investing your time, and expanding your knowledge, in another area.