Server Error in '/WebApplication1' 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 63:
Line 64: dtgCustomers.DataSource = dr
Line 65: dtgCustomers.DataBind()
Line 66: lblElapsed.Text = "Time needed to load: " & Environment.TickCount - Request.QueryString("ms") & " Milliseconds"
Line 67:
Source File: c:\inetpub\wwwroot\WebApplication1\CODBC.aspx.vb Line: 65
Stack Trace:
[FormatException: Input string was not in a correct format.]
System.Number.ParseDecimal(String s, NumberStyles style, NumberFormatInfo info) +0
System.Decimal.Parse(String s, IFormatProvider provider) +28
System.Data.Odbc.OdbcDataReader.internalGetDecimal(Int32 i)
System.Data.Odbc.OdbcDataReader.GetValue(Int32 i, TypeMap typemap)
System.Data.Odbc.OdbcDataReader.GetValue(Int32 i)
System.Data.Odbc.OdbcDataReader.GetValues(Object[] values)
System.Data.Common.DbEnumerator.MoveNext()
System.Web.UI.WebControls.DataGrid.CreateAutoGeneratedColumns(PagedDataSource dataSource)
System.Web.UI.WebControls.DataGrid.CreateColumnSet(PagedDataSource dataSource, Boolean useDataSource)
System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean useDataSource)
System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e)
System.Web.UI.WebControls.BaseDataList.DataBind()
WebApplication1.CODBC.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\WebApplication1\CODBC.aspx.vb:65
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573