Server Error in '/' Application.

Object cannot be cast from DBNull to other types.

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: Object cannot be cast from DBNull to other types.

Source Error:

Line 42:                 <div onclick="$('.haber-detail').hide();" class="pull-right"><span class="glyphicon glyphicon-remove" style="cursor: pointer;"></span></div>
Line 43: 
Line 44:                 <h2 id="haberBaslik"><%=hindiHaberDetay.baslik %></h2>
Line 45: 
Line 46:                 <div id="haberIcerik">

Source File: d:\wwwroot\bykeskin.com\hindihaberleri.aspx    Line: 44

Stack Trace:

[InvalidCastException: Object cannot be cast from DBNull to other types.]
   System.DBNull.System.IConvertible.ToInt32(IFormatProvider provider) +68
   System.Convert.ToInt32(Object value) +48
   bykeskin.haberler.get_hindiHaberDetay() in \\192.168.2.200\d$\inetpub\wwwroot\bykeskin\bykeskin\tavukhaberleri.aspx.cs:60
   ASP.hindihaberleri_aspx.__RenderContent2(HtmlTextWriter __w, Control parameterContainer) in d:\wwwroot\bykeskin.com\hindihaberleri.aspx:44
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +253
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +87
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +53
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
   System.Web.UI.Page.Render(HtmlTextWriter writer) +38
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4240


Version Information: Microsoft .NET Framework Version:2.0.50727.8000; ASP.NET Version:2.0.50727.8001