yasser777 / nettiers

Automatically exported from code.google.com/p/nettiers
0 stars 0 forks source link

UseParameterizedFilters Attribute not being retained during PostBack #195

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Declaritively create an entity datasource for use with a control e.g. 
grid. The following attributes are set; SelectMethod="GetPaged" 
EnableSorting="true" EnableViewState="true" EnablePaging="true"
2. In the code behind, for the page load, create a new SqlParameter with 
the following attributes Name="WhereClause" 
UseParameterizedFilters="False".
3. Also in the code behind create a new entity filter for the SqlParameter 
and specify the following attributes Column="ColumnName" 
DefaultValue="False"

What is the expected output? What do you see instead?

The SqlParameter is retained during postback although the Filter is lost 
and the UseParameterizedFilters attribute is reset to True. I would expect 
the Filter to be retained and the UseParameterizedFilters attribute value 
to remain unchanged, assuming these are handled by the ViewState.

What version of .netTiers and CodeSmith are you using?
netTiers - 2.3
CodeSmith - 5.0.1.4983

Please provide any additional information below.

Original issue reported on code.google.com by alistair...@gmail.com on 6 Apr 2009 at 12:41

GoogleCodeExporter commented 9 years ago

Original comment by bniemyjski on 25 May 2009 at 3:30

GoogleCodeExporter commented 9 years ago

Original comment by bniemyjski on 25 May 2009 at 4:28