|
Server error in "/ WedUser" application.
-------------------------------------------------- ------------------------------
The specified conversion is invalid.
Explanation: An unhandled exception occurred during the execution of the current web request. Check the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidCastException: The specified conversion is invalid.
Source error:
Line 31: </ asp: TemplateField>
Line 32: <asp: TemplateField HeaderText = "is the administrator"> <ItemTemplate>
Line 33: <asp: CheckBox ID = "IsAdminCheck" Enabled = "false" runat = "server" Checked = '<% # (bool) DataBinder.Eval (Container.DataItem, "IsAdmin")%>' />
Line 34: </ ItemTemplate>
Line 35: </ asp: TemplateField>
Add this sentence: Checked = '<% # (bool) DataBinder.Eval (Container.DataItem, "IsAdmin")%>' then the above error appears! |
|