because your textbox is not part of the control hierarcy, you need to assign a proper name and then user Page.Request.Form to retrieve thet value, if you want to the framework to handle it, create a composite control instead
using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace CustomControls
{
public class MyDropDownList2 : DropDownList, IPostBackEventHandler
{
谢谢思归老大!代码如下:
using System;
using System.Data;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.ComponentModel;
using System.Collections;
using System.Resources;
using System.Drawing;