views:

122

answers:

2

We are using ASP.NET 2.0 to build a website, and are using Forms Authentication. As usual I'm using the ASP.NET Login control.

In this project, we are not allowed to use client side (JS) validation, so I want to disable this. Unfortunatly, there doesn't seem to be a EnableClientScript property available like on the various ASP.NET Validator controls.

Does anyone know a way of using the Login control without client side validation scripting so I can avoid creating my own login control?

A: 

Unfortunately, you cannot use the Login control without the built-in client side validation. But, it is very easy to create your own custom login control so I would just go that route. Check on the MSDN site for an example on how to create a custom login.

Shawn Steward
A: 

Hello,

Yes, the ASP.NET membership controls are not very configurable, so you would have to implement your own (easy to do), and use the Membership object to handle validating users, and FormsAuthentication to handle other forms related tasks (such as logging out, saving the user's credentials in a ticket, etc).

HTH

Brian