Server Error in '/' Application.

Input string was not in a correct format.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: Input string was not in a correct format.

Source Error:


Line 145:                    <asp:Repeater ID="Repeater1" runat="server">
Line 146:                        <ItemTemplate>
Line 147:                            <li <%#int.Parse(Eval("ExRemark4").ToString())==CityID?"class='city_cur'":"" %>><a href="javascript:;"><%#Eval("Title") %></a></li>
Line 148:                        </ItemTemplate>
Line 149:                    </asp:Repeater>

Source File: e:\website\about\jigou.aspx    Line: 147

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +12630533
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +224
   ASP.about_jigou_aspx.__DataBind__control11(Object sender, EventArgs e) in e:\website\about\jigou.aspx:147
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +304
   System.Web.UI.Control.DataBindChildren() +11252903
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +321
   System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +185
   System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +643
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +167
   about_jigou.Bind() in e:\website\about\jigou.aspx.cs:86
   about_jigou.Page_Load(Object sender, EventArgs e) in e:\website\about\jigou.aspx.cs:50
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3048


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1