I have a little problem : i want to put a grid in a panel bar like this :
<
telerik:RadPanelBar runat="server" ID="RadPanelBar1" Width="400px" Height="280px" ExpandMode="FullExpandedItem">
<Items>
<telerik:RadPanelItem Text="XXX">
<Items>
<telerik:RadPanelItem>
<ItemTemplate>
(...)
</ItemTemplate>
</telerik:RadPanelItem>
</Items>
</telerik:RadPanelItem>
<telerik:RadPanelItem Text="Here a RadGrid">
<Items>
<telerik:RadPanelItem>
<ItemTemplate>
<telerik:RadGrid (...) DataSourceID="SqlDataSource1">
<MasterTableView DataSourceID="SqlDataSource1" >
<Columns>
(...)
</Columns>
</MasterTableView>
</telerik:RadGrid>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="MyConnectionString" SelectCommand="MySQLRequest"></asp:SqlDataSource>
</ItemTemplate>
</telerik:RadPanelItem>
</Items>
</telerik:RadPanelItem>
</Items>
</telerik:RadPanelBar>
IT WORKS !
But now I want to set my connectionString and my SelectCommand in my code behind..
I remove them from the aspx page and add them into the aspx.vb page
but... when I write SqlDataSource1.ConnectionString ="MyConnectionString" or SqlDataSource1.SelectCommand ="MySQLRequest",
Visual Studio say me SqlDataSource1 is not declared ! But I haven't remove it in the aspx page !
What happend ? How can I resolve this problem ? Please let a little code snippet, if is exists !
Thanks in advance !