I get this error when I go to PhotoAlbum_List.aspx
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 8: Protected Sub SqlDataSource1_Selected(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceStatusEventArgs)
Line 9: Dim pages As Integer
Line 10: pages = CInt(e.Command.Parameters("@pageCount").Value)
Line 11: pn1.Count = pages
Line 12: pn2.Count = pages
Please help...I found a similar post but it didn't really help...I am a beginner.
ruinedmind
Member
247 Points
54 Posts
Godaddy Waltkthrough Help...I followed the steps but I still get errors
Dec 19, 2006 03:00 AM|LINK
I get this error when I go to PhotoAlbum_List.aspx
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:
Please help...I found a similar post but it didn't really help...I am a beginner.
Thanks,