G
Giorgio Parmeggiani
Hi
I have in a ASPX page a ObjectDataSource and a GridView
I have also a web control for filter the grid rows. The webcontrol have a
public property to define a filter. This property is a custom object not
serializable (i'm using NHibernate is a 'NHibernate.Expression.EqExpression'
).
I have defined in the ObjectDataSource a SelectParameters (<asp:ControlParameter
...... />) related at the public property of my filter webcontrols
When i use my webcontrol to filter the grid rows i obtain this exception:
System.Runtime.Serialization.SerializationException because the framework
try to save in the page's ViewState the property value which is not serializable!
How can i solve this problem? Can i avoid that the framework try to save
the property value in the viewState?
Thank in advance and excuse me me for my bad english language
Giorgi
I have in a ASPX page a ObjectDataSource and a GridView
I have also a web control for filter the grid rows. The webcontrol have a
public property to define a filter. This property is a custom object not
serializable (i'm using NHibernate is a 'NHibernate.Expression.EqExpression'
).
I have defined in the ObjectDataSource a SelectParameters (<asp:ControlParameter
...... />) related at the public property of my filter webcontrols
When i use my webcontrol to filter the grid rows i obtain this exception:
System.Runtime.Serialization.SerializationException because the framework
try to save in the page's ViewState the property value which is not serializable!
How can i solve this problem? Can i avoid that the framework try to save
the property value in the viewState?
Thank in advance and excuse me me for my bad english language
Giorgi