类库说明文档
JHWebControlSetValue Method (Control, String, Object) |
给控件指定属性赋值,异常直接抛出
Namespace: DCSoft.Utility.Web
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
public static void SetValue( Control control, string propertyName, Object propertyValue )
Parameters
- control
- Type: System.Web.UIControl
Web 服务器控件 - propertyName
- Type: SystemString
属性名称,不区分大小写 - propertyValue
- Type: SystemObject
属性值
Remarks
如果属性不存在或者属性无 set 访问器,则设置 Attributes 的值
See Also