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 123:    public static DataTable SelectRow(string RE_Id)
Line 124:    {
Line 125:        SqlParameter[] parameters =
Line 126:          {
Line 127:             new SqlParameter("@RE_Id", SqlDbType.Int) { Value =int.Parse(RE_Id) },

Source File: c:\HostingSpaces\publicUser\royalvila.ir\wwwroot\App_Code\tblLandSale.cs    Line: 125

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14198648
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +177
   tblLandSale.SelectRow(String RE_Id) in c:\HostingSpaces\publicUser\royalvila.ir\wwwroot\App_Code\tblLandSale.cs:125
   VillaDetail.populateVillaSale() in c:\HostingSpaces\publicUser\royalvila.ir\wwwroot\VillaDetail.aspx.cs:72
   VillaDetail.Page_Load(Object sender, EventArgs e) in c:\HostingSpaces\publicUser\royalvila.ir\wwwroot\VillaDetail.aspx.cs:35
   System.Web.UI.Control.OnLoad(EventArgs e) +109
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4498


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