Server Error in '/web' 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 296:					page.title=rs("titolo_news_it") & " | " & dottoratohelper.TitoloDottorato(request("i"),ucase(request("l")))
Line 297:				else
Line 298:					ltAvvisi3.text= rs("titolo_news_eng") 
Line 299:					page.title=rs("titolo_news_eng") & " | " & dottoratohelper.TitoloDottorato(request("i"),ucase(request("l")))
Line 300:				end if

Source File: D:\web\web\incMenuHeader.ascx    Line: 298

Stack Trace:


[InvalidCastException: Conversion from type 'DBNull' to type 'String' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToString(Object Value) +715783
   ASP.incMenuHeader.Page_Load(Object sender, EventArgs e) in D:\web\web\incMenuHeader.ascx:298
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.9061; ASP.NET Version:2.0.50727.9062