且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何指定一个自定义的.NET Web控件所需的属性?

更新时间:2022-01-22 03:40:45

我不知道,有此属性。我相信,在Page_Load事件(或者一些渲染事件)只检查是否值已设置。如果没有,那么抛出异常。

I don't know that there's an attribute for this. I believe on the Page_Load event (or perhaps some rendering event) just check if the value has been set. If not then throw an exception.