Last post Jul 02, 2008 10:34 PM by Jeev
Jul 02, 2008 06:38 PM|cdanna4|LINK
When ever i go to add or view things in the clubsite event calendar i get the following:
System.InvalidCastException was unhandled by user code
Message="Unable to cast object of type 'System.DBNull' to type 'System.String'."
at ASP.events_list_aspx.__DataBinding__control15(Object sender, EventArgs e) in h:\LANCERS\ClubWebSite1\Events_List.aspx:line 130
at System.Web.UI.Control.OnDataBinding(EventArgs e)
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
Could someone offer me a hand with this. i really don't know what's going on.
Jul 02, 2008 10:34 PM|Jeev|LINK
Looks like you are retrieving a value from the database that happens to be null and are trying to cast it to string. See line 130 in your code / post the code so that we can take a look at it