Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2005-09-30 06:22:33 +0400
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2005-09-30 06:22:33 +0400
commitdfdec159d785b5a2fb85421738496e13c6680006 (patch)
treef238d3671d70a353906c342ce3394724a944f225 /mcs/class/System.Web/System.Web.UI/LiteralControl.cs
parent5370ce3394411d2824f1b2ba4ea573794f60f5f7 (diff)
2005-09-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* System.Web.UI/DesignerDataBoundLiteralControl.cs: changed autoid api. * System.Web.UI/DataBoundLiteralControl.cs: changed autoid api. * System.Web.UI/Control.cs: fixlet for UniqueID and weird test case. Removed PreventAutoID and only use the property to set that value. * System.Web.UI/LiteralControl.cs: changed autoid api. * System.Web.UI.WebControls/Button.cs: implemented 2.0 RaisePostBackEvent in terms of the existing code in 1.1 (or viceversa). RenderContents() does nothing. * System.Web.UI.WebControls/DataGrid.cs: changed autoid api. * System.Web.UI.WebControls/EditCommandColumn.cs: only 'Update' causes validation. * System.Web.UI.WebControls/TableCell.cs: changed autoid api. RenderContents checks the number of controls to decide what to do, not the value of Text in the viewstate. * System.Web.UI.WebControls/TableRow.cs: changed autoid api. * System.Web.UI.WebControls/BoundColumn.cs: SelectedItem was missing when attaching a DataBind event. When we get an EditItem, we need a TextBox to be created and this one will be the one that gets the event. Changed ItemDataBinding to deal with a TextBox too. All tests pass now in the default profile (2 not run). svn path=/trunk/mcs/; revision=51019
Diffstat (limited to 'mcs/class/System.Web/System.Web.UI/LiteralControl.cs')
-rw-r--r--mcs/class/System.Web/System.Web.UI/LiteralControl.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/System.Web/System.Web.UI/LiteralControl.cs b/mcs/class/System.Web/System.Web.UI/LiteralControl.cs
index 7323e2dbc0d..23826681bf4 100644
--- a/mcs/class/System.Web/System.Web.UI/LiteralControl.cs
+++ b/mcs/class/System.Web/System.Web.UI/LiteralControl.cs
@@ -50,7 +50,7 @@ namespace System.Web.UI {
public LiteralControl (string text)
{
EnableViewState = false;
- PreventAutoID ();
+ AutoID = false;
_text = text; // can be null in this case (see CAS unit tests)
}