Click here to Skip to main content
16,018,534 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Why the following error occurs when i click on linkbutton inside datalist ,I Google a lot but could not find the exact solution.please any boy can help me?

Type 'System.Web.UI.WebControls.LinkButton' in Assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is not marked as serializable
Posted
Comments
Rana Zarour 28-Dec-13 7:24am    
are u using wcf service in your project ?

sometime this error accrued from enum lets say you are using gender enum contain 2 values 0 female and 1 male if you try to create new variable from this enum its value equal to 3 lets say you well get this exception also in case of wcf service if your calss dosn't contain default constructor .

hope this info help you
joginder-banger 28-Dec-13 7:30am    
post your snippet code...for better understanding..
ZurdoDev 28-Dec-13 11:14am    
Because something in your code is broken.
thatraja 28-Dec-13 11:30am    
Share your code in your question

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900