Hi All,

I have  a requirement where i need to display the post for the last quarter.

For this I have created an Quarter.aspx.cs file which has a function which returns the Current Quarter Begin and End Date. So that if I can use these values in  the CSBlog:WeblogPostPropertyValueComparison tags for the filtering.

The problem here is that I am not getting the correct syntax to use Quarter begin and End dates in the tag.

I have used the below syntax.

<

 

CSBlog:WeblogPostPropertyValueComparison ID="WeblogPostPropertyValueComparison5" runat="server" ComparisonProperty="PostDate" Operator="GreaterThan" ComparisonValue="<%# CommunityServer.Web.Themes.hawaii.QuarterIdea.DatesOfQuarter %> ">

 

</CSBlog:WeblogPostPropertyValueComparison>

Below is the error

CS0120: An object reference is required for the nonstatic field, method, or property 'CommunityServer.Web.Themes.hawaii.QuarterIdea.DatesOfQuarter()'

Here CommunityServer.Web.Themes.hawaii is namespace, QuarterIdea is the class and DatesOfQuarter is the function which returns Quarter Begin Date.

I have tried all permutations and combinations on the syntax. Any help on this or on the approach would be appreciated.

Regards,
Sai Kumar