重写 DropwnDownList 服务器端代码:
重写 DropDownList !    [DefaultProperty("ID")]
重写 DropDownList !    [ToolboxData(
@"<{0}:DfSelect runat=""server""></{0}:DfSelect>")]
重写 DropDownList !    
public partial class DfSelect : DropDownList, INamingContainer

相应的客户端脚本如下:
重写 DropDownList !function _GetPreviousSibling(obj)

用另一种思路:把原来的Select暂时 隐藏起来.
重写 DropDownList !    [DefaultProperty("ID")]
重写 DropDownList !    [ToolboxData(
@"<{0}:DfSelect runat=""server""></{0}:DfSelect>")]
重写 DropDownList !    
public partial class DfSelect : DropDownList, INamingContainer
    }

相关文章:

  • 2022-12-23
  • 2021-06-24
  • 2021-04-13
  • 2022-12-23
  • 2021-09-26
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-03-02
  • 2021-11-12
相关资源
相似解决方案