Question:
Can Somebody tell me what this error means? vb.net?
Hi
2008-03-03 06:47:45 UTC
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. ---> System.FormatException: Input string was not in a correct format.
at Microsoft.VisualBasic.CompilerServices.DoubleType.Parse(String Value, NumberFormatInfo NumberFormat)
at Microsoft.VisualBasic.CompilerServices.DoubleType.FromString(String Value, NumberFormatInfo NumberFormat)
--- End of inner exception stack trace ---
at Microsoft.VisualBasic.CompilerServices.DoubleType.FromString(String Value, NumberFormatInfo NumberFormat)
at Microsoft.VisualBasic.CompilerServices.ObjectType.AddString(IConvertible conv1, TypeCode tc1, IConvertible conv2, TypeCode tc2)
at Microsoft.VisualBasic.CompilerServices.ObjectType.AddObj(Object o1, Object o2)
at ASP.BuildingSearch_aspx.__DataBind__control13(Object sender, EventArgs e) in c:\inetpub\wwwroot\SBS\BuildingSearch.aspx:line 42
at System.Web.UI.Control.OnDataBinding(EventArgs 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.CreateItem(Int32 itemIndex, Int32 dataSourceIndex, ListItemType itemType, Boolean dataBind, Object dataItem, DataGridColumn[] columns, TableRowCollection rows, PagedDataSource pagedDataSource)
at System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean useDataSource)
at System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e)
at System.Web.UI.WebControls.BaseDataList.DataBind()
at SBS.BuildingSearch.GridDetail() in c:\inetpub\wwwroot\SBS\BuildingSearch.aspx.vb:line 224
at SBS.BuildingSearch.btnAllBld_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\SBS\BuildingSearch.aspx.vb:line 135
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain()
Three answers:
mox1315
2008-03-03 06:57:52 UTC
You are trying to set this string "ViewBuildingInfo.aspx?bId=" to a double variable.
cleek
2016-10-23 09:00:38 UTC
hi Galactia! there is one observe lacking from this proper morsel... that is. the floor isn't meant to ripple like that! (Exclamation aspect to expose excitement) that is as if someone had lifted up an fringe of Guam and shook it (ditch the comma) like a carpet. " n't " shortens "isn't". Make the fact exciting and under no circumstances get into the habit of reducing off the information with a comma. enable the completed series flow... the in worry-free words time you take advantage of a comma is once you're making use of a preposition: 'yet' or as a change of making use of 'and' also once you're string a bunch of information at the same time.
itdeskpk
2008-03-03 06:54:08 UTC
Probably you are passing double value to a string


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Continue reading on narkive:
Loading...