Posted on: 8/1/2014 5:11:29 AM | Views : 597

Conversion from type 'DBNull' to type 'Integer' is not valid. Conversion from type 'DBNull' to type 'Integer' is not valid. 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.InvalidCastException: Conversion from type 'DBNull' to type 'Integer' is not valid. Source Error: Line 13: Protected Sub SqlDataSource1_Selected(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceStatusEventArgs) Line 14: Dim pages As Integer Line 15: pages = CInt(e.Command.Parameters("@pageCount").Value) Line 16: pn1.Count = pages Line 17: pn2.Count = pages Source File: C:\Users\XXXXXX\Documents\Visual Studio 2012\Websites\XXXXXXXXXXXX\Events\List.aspx Line: 15 Stack Trace: [InvalidCastException: Co ...

Go to the complete details ...