here for declaring common query part and assigning it at multiple condition. at FilterColumn part compile time error faced. how ever at another page same kind of this declaration not gives any problem.
Id int Unchecked
Name varchar(50) Unchecked
type_id int Unchecked
Ownername varchar(50) Checked
Ownermob nchar(10) Checked
Room varchar(10) Checked
Build varchar(50) Checked
Road text Checked
Area text Checked
City varchar(50) Checked
Phone nchar(10) Checked
Mobile nchar(10) Checked
Email varchar(100) Checked
ContactPerson varchar(50) Checked
ContactPersonmob nchar(10) Checked
UserOFC bit Checked
UserVAT bit Checked
UserINV bit Checked
UserNone bit Checked
state_id int Checked
country_id int Checked
Remark text Checked
Register_Date smalldatetime Unchecked
User_id char(14) Unchecked
please help me...
Soluzione
It's hard to see from plain text. Try to use binary search to find incompatible properties. That is to
comment out last half properties to see if incompatibilities happen in first half properties.
If compiler still report errors, do the same for the first half properties.
If compiler doesn't report errors, do the same for the last half properties.
Altri suggerimenti
The properties of your anonymous types looks identical, so my best guess is that one of your default types differs from the actual types use when you have an object to use.
I think the best strategy for solving this would be to use the Null Object pattern