G
Guest
I am having a slight problem. Below is something similar to what I want to
appear in the asp.net
<cc2:WebCustomControl1 id="WebCustomControl11" runat="server">
<FillList CommandName="asfsadf" ParameterName="sdafas" >
<ParameterNames>
<System.String Length="6">sdafas</System.String>
</ParameterNames>
</FillList>
</cc2:WebCustomControl1>
If it were up to me I would prefer to have something like
<cc2:WebCustomControl id="WebCustomControl1" runat="server">
<fillList CommandName="...." ParameterName="...">
<ParameterNames>
<Parameter name="@Retail"></Parameter
<Parameter name="@Detail"></Parameter
<Parameter name="@ISRepair"></Parameter
<ParameterName>
I have the first format working partially however the Designer breaks with
an error saying '' cannot be set on the property FillList and at runtime the
System.String is interpreted as an HtmlControl.
[
Bindable(true),
Category("SQL Properties"),
PersistenceMode(PersistenceMode.InnerProperty),
NotifyParentProperty(true),
DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public DataParameters FillList
{
get { return gFillList; }
set { gFillList = value; }
}
[TypeConverter(typeof(ExpandableObjectConverter)),
Browsable(true),
RefreshProperties(RefreshProperties.Repaint),
Serializable(),
ToolboxItem(false)]
public class DataParameters
{
[PersistenceMode(PersistenceMode.InnerProperty)]
public ArrayList ParameterNames
{
get { return gParameterNames; }
set { gParameterNames = value; SetParameterNames(value); }
}
}
Am I on the right track and there is just something that I am missing? or is
there a better way to do this. the MSDN Docs are pretty scarce on any
documentation/samples that go outside of a single simple nesting. Most of
what I have gleaned has been from various posts and has been extremly
incomplete.
appear in the asp.net
<cc2:WebCustomControl1 id="WebCustomControl11" runat="server">
<FillList CommandName="asfsadf" ParameterName="sdafas" >
<ParameterNames>
<System.String Length="6">sdafas</System.String>
</ParameterNames>
</FillList>
</cc2:WebCustomControl1>
If it were up to me I would prefer to have something like
<cc2:WebCustomControl id="WebCustomControl1" runat="server">
<fillList CommandName="...." ParameterName="...">
<ParameterNames>
<Parameter name="@Retail"></Parameter
<Parameter name="@Detail"></Parameter
<Parameter name="@ISRepair"></Parameter
<ParameterName>
I have the first format working partially however the Designer breaks with
an error saying '' cannot be set on the property FillList and at runtime the
System.String is interpreted as an HtmlControl.
[
Bindable(true),
Category("SQL Properties"),
PersistenceMode(PersistenceMode.InnerProperty),
NotifyParentProperty(true),
DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public DataParameters FillList
{
get { return gFillList; }
set { gFillList = value; }
}
[TypeConverter(typeof(ExpandableObjectConverter)),
Browsable(true),
RefreshProperties(RefreshProperties.Repaint),
Serializable(),
ToolboxItem(false)]
public class DataParameters
{
[PersistenceMode(PersistenceMode.InnerProperty)]
public ArrayList ParameterNames
{
get { return gParameterNames; }
set { gParameterNames = value; SetParameterNames(value); }
}
}
Am I on the right track and there is just something that I am missing? or is
there a better way to do this. the MSDN Docs are pretty scarce on any
documentation/samples that go outside of a single simple nesting. Most of
what I have gleaned has been from various posts and has been extremly
incomplete.