M
mato
hello!
i have this problem. i put datalist control under pageview, and the same
datalist on the page.
when it is placed under pageview, it does not bind, on the page works fine.
this is piece of my aspx code.
.....
<iewc:Multipage id="someId" runat="server" ... >
<iewc
ageView id="page1">
<cc1:CategoryTreeView id="categoryTree" runat="server" >
</cc1:CategoryTreeView>
</iewc
ageView>
<iewc
ageView id="page2">
<asp
ataList id="data1" runat="server" >
<ItemTemplate>
<cc1
ropertyGroupDataList id="propertyGroup1"
runat="server" PropertySessionId='<%#
DataBinder.Eval(Container.DataItem,"propertySessionId") %>' Expanded="true"
PropertyGroupName='<%#
DataBinder.Eval(Container.DataItem,"propertyGroupName") %>' >
</cc1
ropertyGroupDataList>
</ItemTeplate>
</asp
ataList>
</iewc
ageView>
<asp
ataList id="data2" runat="server" >
<ItemTemplate>
<cc1
ropertyGroupDataList id="propertyGroup2"
runat="server" PropertySessionId='<%#
DataBinder.Eval(Container.DataItem,"propertySessionId") %>' Expanded="true"
PropertyGroupName='<%#
DataBinder.Eval(Container.DataItem,"propertyGroupName") %>' >
</cc1
ropertyGroupDataList>
</ItemTeplate>
</asp
ataList>
.......
c# page behind code.
public class MyWebPage : System.Web.UI.Page
{
....
private void MyWebPage_PageLoad(object sender, System.EventArgs e)
{
BindDataList();
}
private void BindDataList()
{
System.Data.DataView _view = CreateDataSource();
data1.DataSource = _view;
data1.DataBind();
data2.DataSource = _view;
data2.DataBind();
}
....
}
c# custom control code:
public class PropertyGroupName : System.Web.UI.WebControls.DataList
{
....
[ System.ComponentModel.Bindable( true ) ]
public PropertySessionId
{
get
{
...
}
set
{
...
}
}
[ System.ComponentModel.Bindable( true ) ]
public PropertyGroupName
{
get
{
...
}
set
{
...
}
}
....
}
thank you for any comment, suggestion, help, opinion, anything
i have this problem. i put datalist control under pageview, and the same
datalist on the page.
when it is placed under pageview, it does not bind, on the page works fine.
this is piece of my aspx code.
.....
<iewc:Multipage id="someId" runat="server" ... >
<iewc
<cc1:CategoryTreeView id="categoryTree" runat="server" >
</cc1:CategoryTreeView>
</iewc
<iewc
<asp
<ItemTemplate>
<cc1
runat="server" PropertySessionId='<%#
DataBinder.Eval(Container.DataItem,"propertySessionId") %>' Expanded="true"
PropertyGroupName='<%#
DataBinder.Eval(Container.DataItem,"propertyGroupName") %>' >
</cc1
</ItemTeplate>
</asp
</iewc
<asp
<ItemTemplate>
<cc1
runat="server" PropertySessionId='<%#
DataBinder.Eval(Container.DataItem,"propertySessionId") %>' Expanded="true"
PropertyGroupName='<%#
DataBinder.Eval(Container.DataItem,"propertyGroupName") %>' >
</cc1
</ItemTeplate>
</asp
.......
c# page behind code.
public class MyWebPage : System.Web.UI.Page
{
....
private void MyWebPage_PageLoad(object sender, System.EventArgs e)
{
BindDataList();
}
private void BindDataList()
{
System.Data.DataView _view = CreateDataSource();
data1.DataSource = _view;
data1.DataBind();
data2.DataSource = _view;
data2.DataBind();
}
....
}
c# custom control code:
public class PropertyGroupName : System.Web.UI.WebControls.DataList
{
....
[ System.ComponentModel.Bindable( true ) ]
public PropertySessionId
{
get
{
...
}
set
{
...
}
}
[ System.ComponentModel.Bindable( true ) ]
public PropertyGroupName
{
get
{
...
}
set
{
...
}
}
....
}
thank you for any comment, suggestion, help, opinion, anything