You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
parent
a569aebcfd
commit
e79aa3c0ed
@@ -0,0 +1,36 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <copyright file="WmlPasswordRecoveryAdapter.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#if WMLSUPPORT
|
||||
|
||||
namespace System.Web.UI.WebControls.Adapters {
|
||||
|
||||
public class WmlPasswordRecoveryAdapter : PasswordRecoveryAdapter {
|
||||
|
||||
// Overridden to render the validator *before* the label, to ensure the validator
|
||||
// is presented on the correct screen.
|
||||
protected override void RenderInput(HtmlTextWriter writer, Literal label, Control textBox, Control validator) {
|
||||
validator.RenderControl(writer);
|
||||
|
||||
// In the PasswordRecovery control, many styles are applied to the table cell that contains
|
||||
// a child control, rather than the child control itself. We must apply the proper
|
||||
// style from the PasswordRecovery control to any control we create for adaptive rendering.
|
||||
// VSWhidbey 81240
|
||||
Label newLabel = new Label();
|
||||
newLabel.Text = label.Text;
|
||||
newLabel.Page = Page;
|
||||
newLabel.ApplyStyle(Control.LabelStyle);
|
||||
newLabel.RenderControl(writer);
|
||||
|
||||
// TextBoxStyle is applied directly to the TextBox in the PasswordRecovery control
|
||||
textBox.RenderControl(writer);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user