[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

(Bill)

5/23/2002 12:31:00 AM

Here is my error message when there are no mobile modules to display
in the IBuySpy portal.
I like to see a blank page if there are no mobile modules to display.

Is there a way to change this?

Bill

Server Error in '/PortalCSVS' Application.
--------------------------------------------------------------------------------

Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not
set to an instance of an object.

Source Error:


Line 640: {
Line 641: // Search all children of the control.
Line 642: if (ctl.HasControls()) {
Line 643: foreach (Control child in ctl.Controls) {
Line 644: if (child.Visible) {



Source File: C:\PortalCSVS\PortalCSVS\Components\MobileControls.cs
Line: 642

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an
object.]
PortalICT.MobileControls.MultiPanel.DoPaginateChildren(ControlPager
pager, Control ctl, Int32& firstAssignedPage) in
C:\PortalCSVS\PortalCSVS\Components\MobileControls.cs:642
PortalICT.MobileControls.MultiPanel.PaginateRecursive(ControlPager
pager) in C:\PortalCSVS\PortalCSVS\Components\MobileControls.cs:612
PortalICT.MobileControls.MultiPanel.PaginateRecursive(ControlPager
pager) in C:\PortalCSVS\PortalCSVS\Components\MobileControls.cs:601
System.Web.UI.MobileControls.MobileControl.DoPaginateChildren(ControlPager
pager, Control ctl, Int32& firstAssignedPage) +154
System.Web.UI.MobileControls.MobileControl.PaginateRecursive(ControlPager
pager) +88
System.Web.UI.MobileControls.Panel.PaginateRecursive(ControlPager
pager) +100
System.Web.UI.MobileControls.Form.PaginateForm() +219
System.Web.UI.MobileControls.Form.OnPreRender(EventArgs e) +47
System.Web.UI.Control.PreRenderRecursiveInternal() +62
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Page.ProcessRequestMain() +1447






--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:1.0.3705.209;
ASP.NET Version:1.0.3705.0
1 Answer

(Simon Calvert)

5/24/2002 5:58:00 PM

0