An Exception has occurred:
URL = /SBS/BuildingSearch.aspx
QueryString =
Error Details
System.InvalidCastException: Cast from string "ViewBuildingInfo.aspx?bId=" to type 'Double' is not valid. ---%26gt; System.FormatException: Input string was not in a correct format.
at Microsoft.VisualBasic.CompilerServices.D... Value, NumberFormatInfo NumberFormat)
at Microsoft.VisualBasic.CompilerServices.D... Value, NumberFormatInfo NumberFormat)
--- End of inner exception stack trace ---
at Microsoft.VisualBasic.CompilerServices.D... Value, NumberFormatInfo NumberFormat)
at Microsoft.VisualBasic.CompilerServices.O... conv1, TypeCode tc1, IConvertible conv2, TypeCode tc2)
at Microsoft.VisualBasic.CompilerServices.O... o1, Object o2)
at ASP.BuildingSearch_aspx.__DataBind__cont... sender, EventArgs e) in c:\inetpub\wwwroot\SBS\BuildingSearch.as... 42
at System.Web.UI.Control.OnDataBinding(Even... e)
at System.Web.UI.Control.DataBind()
at System.Web.UI.Control.DataBind()
at System.Web.UI.Control.DataBind()
at System.Web.UI.WebControls.DataGrid.Creat... itemIndex, Int32 dataSourceIndex, ListItemType itemType, Boolean dataBind, Object dataItem, DataGridColumn[] columns, TableRowCollection rows, PagedDataSource pagedDataSource)
at System.Web.UI.WebControls.DataGrid.Creat... useDataSource)
at System.Web.UI.WebControls.BaseDataList.O... e)
at System.Web.UI.WebControls.BaseDataList.D...
at SBS.BuildingSearch.GridDetail() in c:\inetpub\wwwroot\SBS\BuildingSearch.as... 224
at SBS.BuildingSearch.btnAllBld_Click(Objec... sender, EventArgs e) in c:\inetpub\wwwroot\SBS\BuildingSearch.as... 135
at System.Web.UI.WebControls.Button.OnClick... e)
at System.Web.UI.WebControls.Button.System.... eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IP... sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(Na... postData)
at System.Web.UI.Page.ProcessRequestMain()
Can Somebody tell me what this error means? vb.net?
You are trying to set this string "ViewBuildingInfo.aspx?bId=" to a double variable.
Reply:Probably you are passing double value to a string
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment