cancel
Showing results for 
Search instead for 
Did you mean: 

Internal Error Part List Block

Former Member
0 Kudos

An Internal Error has occurred.

Version 2007.1.651.1

Message Object reference not set to an instance of an object.

Source netpoint

Stack at netpoint.catalog.controls.PartsListBlock.set_BorderWidth(Unit value)

at ASP.catalog_partlist_aspx.__BuildControlnpplblock() in c:\Inetpub\wwwroot\PhiltronWeb\catalog\partlist.aspx:line 6

at ASP.catalog_partlist_aspx.__BuildControlmain(Control __ctrl) in c:\Inetpub\wwwroot\PhiltronWeb\catalog\partlist.aspx:line 4

at System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container)

at netpoint.masters.catalog.__BuildControlmainslot() in c:\Inetpub\wwwroot\PhiltronWeb\assets\common\themes\Automotive\catalog.master:line 7

at netpoint.masters.catalog.__BuildControlmainslotcontent(Control __ctrl) in c:\Inetpub\wwwroot\PhiltronWeb\assets\common\themes\Automotive\catalog.master:line 6

at System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container)

at ASP.assets_common_themes_automotive_common_master.__BuildControlmainslot() in c:\Inetpub\wwwroot\PhiltronWeb\assets\common\themes\Automotive\common.Master:line 40

at ASP.assets_common_themes_automotive_common_master.__BuildControlForm1() in c:\Inetpub\wwwroot\PhiltronWeb\assets\common\themes\Automotive\common.Master:line 22

at ASP.assets_common_themes_automotive_common_master.__BuildControlTree(assets_common_themes_automotive_common_master __ctrl) in c:\Inetpub\wwwroot\PhiltronWeb\assets\common\themes\Automotive\common.Master:line 1

at ASP.assets_common_themes_automotive_common_master.FrameworkInitialize() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\philtronweb\883504be\5cb2e5fd\App_Web_beacojve.0.cs:line 0

at System.Web.UI.UserControl.InitializeAsUserControlInternal()

at System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection)

at System.Web.UI.MasterPage.get_Master()

at System.Web.UI.MasterPage.ApplyMasterRecursive(MasterPage master, IList appliedMasterFilePaths)

at System.Web.UI.Page.ApplyMasterPage()

at System.Web.UI.Page.PerformPreInit()

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

mylistblock.ascx -

<%@ Control Language="c#" AutoEventWireup="false" Inherits="netpoint.catalog.controls.PartsListBlock" %>

<%@ Import Namespace="System" %>

<%@ Import Namespace="System.IO" %>

<%@ Import Namespace="System.Text" %>

<%@ Import Namespace="System.Web" %>

<%@ Import Namespace="System.Web.UI" %>

<%@ Import Namespace="System.Web.UI.WebControls" %>

<%@ Import Namespace="System.Web.UI.HtmlControls" %>

<%@ Import Namespace="System" %>

<%@ Import Namespace="netpoint.classes" %>

<%@ Import Namespace="netpoint.api.catalog" %>

Former Member
0 Kudos

private int catID;

protected void Page_Load(object sender, System.EventArgs e)

{

//get the CategoryID that was passed into us

catID = Convert.ToInt32(Request["CategoryID"]);

//get the page object

NPBasePage p = (NPBasePage)Page;

ArrayList parts = p.Catalog.CategoryParts(catID, p.UserID, p.PriceList, p.Encoding);

//finally bind them to the repeater

repItems.DataSource = parts;

repItems.DataBind();

}

</script>

script does not execute

Former Member
0 Kudos

asp datalist portion

<ASP:DataList id="repItems" runat="server" CellSpacing="0" CellPadding="0" GridLines="None"
	BorderWidth="0" BorderColor="Black" RepeatColumns="0" RepeatLayout="Table" CssClass="npbody"
	 Width=100%>
	<ItemTemplate>
		<table class="tableContent" width="100%" CellSpacing="0" CellPadding="0" border="0">
			<tr>
				<td valign="top">
					<asp:HyperLink ID="PartNo" Runat="server">
						<asp:Label Runat="server" ID="CategoryName" CssClass="npbody" Text='<%#DataBinder.Eval(Container.DataItem,"PartNo")%>' />
					</asp:HyperLink>
				</td>
			</tr>
			<tr>
				<td valign="top">
					<asp:Label Runat="server" ID="PartName" CssClass="npbody" Text='<%#DataBinder.Eval(Container.DataItem,"PartName")%>' Height="20" />
				</td>
			</tr>
		</table>
	</ItemTemplate>
</ASP:DataList>