mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
* DataGrid.cs: removed the private class TableID and moved its code to ChildTable.cs (see below). 2.0 instantiates teh ChildTable with the owner parameter now. Fixes bug #400377 * ChildTable.cs: refactoring - moved code from TableID previously defined in DataGrid.cs to here and made the class available under different names for both 1.x and 2.x profiles. Fixes bug #400377 svn path=/trunk/mcs/; revision=108638
66 lines
1.8 KiB
C#
66 lines
1.8 KiB
C#
//
|
|
// System.Web.UI.WebControls.ChildTable.cs
|
|
//
|
|
// Authors:
|
|
// Lluis Sanchez Gual ([email protected])
|
|
//
|
|
// (C) 2005 Novell, Inc (http://www.novell.com)
|
|
//
|
|
// Permission is hereby granted, free of charge, to any person obtaining
|
|
// a copy of this software and associated documentation files (the
|
|
// "Software"), to deal in the Software without restriction, including
|
|
// without limitation the rights to use, copy, modify, merge, publish,
|
|
// distribute, sublicense, and/or sell copies of the Software, and to
|
|
// permit persons to whom the Software is furnished to do so, subject to
|
|
// the following conditions:
|
|
//
|
|
// The above copyright notice and this permission notice shall be
|
|
// included in all copies or substantial portions of the Software.
|
|
//
|
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
//
|
|
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
|
|
//
|
|
using System;
|
|
using System.Globalization;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.ComponentModel;
|
|
|
|
namespace System.Web.UI.WebControls
|
|
{
|
|
#if NET_2_0
|
|
internal class ChildTable : Table
|
|
#else
|
|
internal class TableID : Table
|
|
#endif
|
|
{
|
|
Control parent;
|
|
|
|
#if NET_2_0
|
|
public ChildTable (Control parent)
|
|
#else
|
|
public TableID (Control parent)
|
|
#endif
|
|
{
|
|
this.parent = parent;
|
|
}
|
|
|
|
protected override void AddAttributesToRender (HtmlTextWriter writer)
|
|
{
|
|
base.AddAttributesToRender (writer);
|
|
if (ID == null)
|
|
writer.AddAttribute ("id", parent.ClientID);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|