<p>I'm considering using the ChangePassword control on an ASP.NET 2.0 Webform.  I don't want the 'cancel' button to show.</p>

<p>Is there a good way to hide it without resorting to silly "width = 0" sort of games?  </p>

<p>Or perhaps there's a generic way to walk through the parts of a composite control like this 
and hide individual parts?</p>

[{'answer_id': 34246, 'author': 'Espo', 'author_id': 2257, 'author_profile': 'https://Stackoverflow.com/users/2257', 'pm_score': 0, 'selected': False, 'text': '<p>You can use the ChangePassword.CancelButtonStyle Property to set the CSS-class on the Cancel Button. Then just apply "display: none" on the specified class.</p>\n'}, {'answer_id': 34261, 'author': 'Seb Nilsson', 'author_id': 2429, 'author_profile': 'https://Stackoverflow.com/users/2429', 'pm_score': 4, 'selected': True, 'text': '<p>Set CancelButtonStyle.CssClass to something like "hiddenItem" and set the CSS to "display:none".</p>\n\n<p>Otherwise you can convert the control to a template and simply delete away the cancel-button manually. When you click the control in Design-mode in Visual Studio, you get a little arrow with options and one of them is "Convert to Template".</p>\n'}, {'answer_id': 437586, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 2, 'selected': False, 'text': '<p>A quick an easy way just using your .aspx page is to set these cancel button properties on the changepassword control:</p>\n\n<p>CancelButtonType="Link"\nCancelButtonText=""</p>\n'}]
['https://Stackoverflow.com/questions/34237', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/987/']