mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
Adding reference source for System.Data System.Data.DataSetExtensions System.Data.Entity System.Data.Entity.Design System.Data.Linq System.Data.SqlXml System.ServiceModel System.ServiceModel.Activation System.ServiceModel.Activities System.ServiceModel.Channels System.ServiceModel.Discovery System.ServiceModel.Internals System.ServiceModel.Routing System.ServiceModel.WasHosting System.ServiceModel.Web System.Web System.Web.ApplicationServices System.Web.DynamicData System.Web.Entity System.Web.Entity.Design System.Web.Extensions System.Web.Mobile System.Web.Routing System.Web.Services System.Xml System.Xml.Linq
36 lines
1.4 KiB
C#
36 lines
1.4 KiB
C#
//------------------------------------------------------------------------------
|
|
// <copyright file="WmlChangePasswordAdapter.cs" company="Microsoft">
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// </copyright>
|
|
//------------------------------------------------------------------------------
|
|
|
|
#if WMLSUPPORT
|
|
|
|
namespace System.Web.UI.WebControls.Adapters {
|
|
|
|
public class WmlChangePasswordAdapter : ChangePasswordAdapter {
|
|
|
|
// 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 ChangePassword 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 ChangePassword 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 ChangePassword control
|
|
textBox.RenderControl(writer);
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
#endif
|