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 5:      Public Property idZona() As Integer
Line 6:          Get
Line 7:              Return hfIdZona.Value
Line 8:          End Get
Line 9:          Set(ByVal value As Integer)

Source File: D:\inetpub\webs\realistaimmobiliareit\incAnnunciZona.ascx    Line: 7

Stack Trace:


[FormatException: Input string was not in a correct format.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat) +224
   Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) +92

[InvalidCastException: Conversion from string "" to type 'Integer' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) +248
   ASP.incAnnunciZona.get_idZona() in D:\inetpub\webs\realistaimmobiliareit\incAnnunciZona.ascx:7
   ASP.incAnnunciZona.sdsAnnZona_Selecting(Object sender, SqlDataSourceSelectingEventArgs e) in D:\inetpub\webs\realistaimmobiliareit\incAnnunciZona.ascx:34
   System.Web.UI.WebControls.SqlDataSourceView.OnSelecting(SqlDataSourceSelectingEventArgs e) +105
   System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +675
   System.Web.UI.WebControls.Repeater.GetData() +242
   System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +216
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +63
   System.Web.UI.WebControls.Repeater.DataBind() +81
   System.Web.UI.WebControls.Repeater.EnsureDataBound() +59
   System.Web.UI.WebControls.Repeater.OnPreRender(EventArgs e) +16
   System.Web.UI.Control.PreRenderRecursiveInternal() +90
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +906


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