P
Philip
I am using the LINQDataSource.
I want to use a Parameter to for Select which is essentially a value within
a code variable. I have tried using inline code for the asparameter
DefaultValue, however this is not being driven.
Here is my existing code...
<asp:LinqDataSource ID="dataSource" runat="server"
ContextTypeName="SLCMS_DB_DataContext"
TableName="SLCMS_BannerAds"
Select="new(BannerAdKey, Enabled, ImageUrl, NavigateUrl,
AlternateText, Impressions, Width, Height, PublishDateTime)"
Where="Application=@Application && Group=@Group">
<WhereParameters>
<asp:SessionParameter Name="Application"
Type="String"
SessionField="_ConfigApplicationName" />
<asp:ControlParameter
Name="Group"
ControlID="RadTreeView1"
PropertyName="SelectedValue"
Type="String" />
</WhereParameters>
</asp:LinqDataSource>
Rather than have the SessionParameter I would like to use a asparameter
with a DefaultValue='<%= GetMyParameter() %>'.....however this will not
work....
Do you have any suggestions ? I essentially want to bring the Parameter in
from a code variable.
I want to use a Parameter to for Select which is essentially a value within
a code variable. I have tried using inline code for the asparameter
DefaultValue, however this is not being driven.
Here is my existing code...
<asp:LinqDataSource ID="dataSource" runat="server"
ContextTypeName="SLCMS_DB_DataContext"
TableName="SLCMS_BannerAds"
Select="new(BannerAdKey, Enabled, ImageUrl, NavigateUrl,
AlternateText, Impressions, Width, Height, PublishDateTime)"
Where="Application=@Application && Group=@Group">
<WhereParameters>
<asp:SessionParameter Name="Application"
Type="String"
SessionField="_ConfigApplicationName" />
<asp:ControlParameter
Name="Group"
ControlID="RadTreeView1"
PropertyName="SelectedValue"
Type="String" />
</WhereParameters>
</asp:LinqDataSource>
Rather than have the SessionParameter I would like to use a asparameter
with a DefaultValue='<%= GetMyParameter() %>'.....however this will not
work....
Do you have any suggestions ? I essentially want to bring the Parameter in
from a code variable.