SharePoint 2010 .net chart control error
After using chart control am getting the below error 

[SyntaxErrorException: Syntax error: Missing operand after 't' operator.]
   System.Data.ExpressionParser.Parse() +6215733
   System.Data.DataExpression..ctor(DataTable table, String expression, Type type) +154
   System.Data.Select..ctor(DataTable table, String filterExpression, String sort, DataViewRowState recordStates) +131
   System.Data.DataTable.Select(String filterExpression) +88
   NKOM.VotingPoll.VotingPollUserControl.CreateChart() +2194
   NKOM.VotingPoll.VotingPollUserControl.Page_Load(Object sender, EventArgs e) +1810
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +350
   NKOM.VotingPoll.VotingPoll.CreateChildControls() +155
   System.Web.UI.Control.EnsureChildControls() +146
   System.Web.UI.Control.PreRenderRecursiveInternal() +61
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +
August 5th, 2013 4:12am

This can happen because of the ' character in the returned results

http://aspnetresources.com/blog/apostrophe_in_rowfilter

Free Windows Admin Tool Kit Click here and download it now
August 5th, 2013 4:36am

This is an out of the box sharepoint control I have not wrote any code
August 5th, 2013 4:51am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics