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 47: zdcs = 0;
Line 48: }
Line 49: zdcs = Convert.ToInt32(Rs[0]);
Line 50:
Line 51: Rs.Close();
Source File: d:\www\web\txqq789.com_cgopekleedexhf0t04oz\wwwroot\wml\bbs\profile.aspx.cs ?? Line: 49
Stack Trace:
[InvalidCastException: Object cannot be cast from DBNull to other types.]
System.DBNull.System.IConvertible.ToInt32(IFormatProvider provider) +56
System.Convert.ToInt32(Object value) +28
bbs_profile.Page_Load(Object sender, EventArgs e) in d:\www\web\txqq789.com_cgopekleedexhf0t04oz\wwwroot\wml\bbs\profile.aspx.cs:49
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
System.Web.UI.Control.OnLoad(EventArgs e) +92
System.Web.UI.Control.LoadRecursive() +54
族斗就是这样,昨天就是今天还这样。。。