private TableStyle paymentMethodLabelStyle;
[DefaultValue((string)null)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[NotifyParentProperty(true)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public TableStyle PaymentMethodLabelStyle
{
get
{
if (paymentMethodLabelStyle == null)
{
paymentMethodLabelStyle = new TableStyle();
if (IsTrackingViewState)
((IStateManager)paymentMethodLabelStyle).TrackViewState();
} return paymentMethodLabelStyle;
}
}这是一个自定义控件的一个属性,我在页面的CS中调用这个属性,并且可以修改PaymentMethodLabelStyle的值.但是我定义时候只有get没有set 请问高手原因
[DefaultValue((string)null)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[NotifyParentProperty(true)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public TableStyle PaymentMethodLabelStyle
{
get
{
if (paymentMethodLabelStyle == null)
{
paymentMethodLabelStyle = new TableStyle();
if (IsTrackingViewState)
((IStateManager)paymentMethodLabelStyle).TrackViewState();
} return paymentMethodLabelStyle;
}
}这是一个自定义控件的一个属性,我在页面的CS中调用这个属性,并且可以修改PaymentMethodLabelStyle的值.但是我定义时候只有get没有set 请问高手原因
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货