Server Error in '/' Application.

Attempted to divide by zero.

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.DivideByZeroException: Attempted to divide by zero.

Source Error:


Line 224:            int start = 1;
Line 225:            int end = 0;
Line 226:            int k = recordcount / recordinpage;
Line 227:            //kiem tra co sang trang ko
Line 228:            int div = recordcount % recordinpage;

Source File: c:\www\ctump.edu.vn\DesktopModules\NEWS\TT_DSTinTiepTheo.aspx.cs    Line: 226

Stack Trace:


[DivideByZeroException: Attempted to divide by zero.]
   Liink.CMS.TT_dsTinTiepTheo.PhanTrang(Int32 curpage, Int32 recordinpage, Int32 recordcount, Int64 vND_ID) in c:\www\ctump.edu.vn\DesktopModules\NEWS\TT_DSTinTiepTheo.aspx.cs:226
   Liink.CMS.TT_dsTinTiepTheo.Page_Load(Object sender, EventArgs e) in c:\www\ctump.edu.vn\DesktopModules\NEWS\TT_DSTinTiepTheo.aspx.cs:206
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +24
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +41
   System.Web.UI.Control.OnLoad(EventArgs e) +131
   System.Web.UI.Control.LoadRecursive() +65
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2427


Version Information: Microsoft .NET Framework Version:2.0.50727.8762; ASP.NET Version:2.0.50727.8762