Server Error in '/' Application.

Value was either too large or too small for an Int32.

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.OverflowException: Value was either too large or too small for an Int32.

Source Error:


Line 41:                                   </h3>
Line 42:                                   
Line 43:                                   <div class="price text-center">قیمت :<strong><%# CommonClasses.General.GetPrice(Convert.ToInt32(Eval("DiscountedPrice")) , Eval("SiteName").ToString()) %></strong></div>
Line 44:                               </div>
Line 45:                           </a>

Source File: d:\WebSites\Other\RashinKala\ImportantProducts\Default.aspx    Line: 43

Stack Trace:


[OverflowException: Value was either too large or too small for an Int32.]
   System.Convert.ToInt32(Int64 value) +14432603
   ASP.importantproducts_default_aspx.__DataBind__control6(Object sender, EventArgs e) in d:\WebSites\Other\RashinKala\ImportantProducts\Default.aspx:43
   System.Web.UI.Control.OnDataBinding(EventArgs e) +100
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +178
   System.Web.UI.Control.DataBindChildren() +248
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +195
   System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +174
   System.Web.UI.WebControls.Repeater.AddDataItemsIntoItemsArray(IEnumerable dataSource, Boolean useDataSource) +291
   System.Web.UI.WebControls.Repeater.PostGetDataAction(IEnumerable dataSource) +109
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +81
   Search_Default.GetData() in d:\WebSites\Other\RashinKala\ImportantProducts\Default.aspx.cs:64
   Search_Default.Page_Load(Object sender, EventArgs e) in d:\WebSites\Other\RashinKala\ImportantProducts\Default.aspx.cs:16
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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