Server Error in '/' Application.

Conversion from type 'DBNull' to type 'String' 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 'String' is not valid.

Source Error:


Line 206:               Label3.Text = CStr(dst.Tables("Autore").Rows(0).Item(13))
Line 207:                
Line 208:               If CStr(dst.Tables("Autore").Rows(0).Item(9)) = "" Then
Line 209:                   Label4.Text = ""
Line 210:               Else

Source File: D:\inetpub\webs\tuttostorianet\tutto-storia-autori.aspx    Line: 208

Stack Trace:


[InvalidCastException: Conversion from type 'DBNull' to type 'String' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToString(Object Value) +452708
   ASP.tutto_storia_autori_aspx.Page_Overloads(Object sender, EventArgs e) in D:\inetpub\webs\tuttostorianet\tutto-storia-autori.aspx:208
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.9174; ASP.NET Version:2.0.50727.9175