I want to create text password property with masked input in my visual web part sharepoint 2010

1 Answer 1


You can use the normal method of creating custom property. And for the textbox you can choose TextMode as follows

txtPassword.TextMode = TextBoxMode.Password;

Here is an example on how to implement this https://rmanimaran.wordpress.com/2011/02/27/sharepoint-webpart-custom-properties-password-field-as-property/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.