Wrox Programmer Forums
|
BOOK: Professional DotNetNuke Module Programming ISBN: 978-0-470-17116-5
This is the forum to discuss the Wrox book Professional DotNetNuke Module Programming by Mitchel Sellers and Shaun Walker - Wrox DotNetNuke Series Editor; ISBN: 978-0-470-17116-5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional DotNetNuke Module Programming ISBN: 978-0-470-17116-5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 17th, 2009, 09:26 AM
Authorized User
 
Join Date: Jul 2009
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default SignGuestbook.ascx: Error Creating Control - pnlSignGuestbook

In "SignGuestbook.ascx" I'm getting the following error:

"Error Creating Control - pnlSignGuestbook
'Cells' could not be initialized. Details: 'Cells' could not be added to the collection. Details: Exception has been thrown by the target of an invocation."

Any clues on what causes this and how to solve it?
 
Old August 19th, 2009, 01:21 PM
Wrox Author
 
Join Date: Jul 2008
Posts: 74
Thanks: 1
Thanked 8 Times in 8 Posts
Send a message via MSN to msellers
Default

Could you post the code snippet that is causing the issue, there appears to be a definition issue.
__________________
Mitchel Sellers
Microsoft C# MVP, MCITP
Director of Development
IowaComputerGurus Inc.

My blog for .NET and DotNetNuke info

Author of "Professional DotNetNuke Module Programming"

Tech Editor on "Visual Studio 2010 six-in-one" and "Pro C# 4.0"
 
Old August 20th, 2009, 05:43 AM
Authorized User
 
Join Date: Jul 2009
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default

The code snippet is (including directives):

Code:
<%@ControlLanguage="vb"AutoEventWireup="false"CodeBehind="SignGuestbook.ascx.vb"Inherits="WroxModules.GuestbookVB.SignGuestbook" %>
<%@RegisterTagPrefix="dnn"TagName="Label"Src="~/controls/LabelControl.ascx" %>
<%@RegisterTagPrefix="dnn"Assembly="DotNetNuke"Namespace="DotNetNuke.UI.WebControls" %>
<asp:PanelID="pnlSignGuestbook"runat="server">
<table>
<tr>
<tdclass="SubHead"width="200">
<dnn:Labelid="lblName"runat="server"ControlName="txtName"Suffix=":"/>
</td>
<td>
<asp:TextBoxID="txtName"runat="server"MaxLength="255"CssClass="NormalTextbox"ValidationGroup="Guestbook"/>
<asp:RequiredFieldValidatorID="NameRequired"runat="server"CssClass="NormalRed"Display="Dynamic"
ControlToValidate="txtName"resourcekey="NameRequired"ValidationGroup="Guestbook"/>
</td>
</tr>
<tr>
<tdclass="SubHead">
<dnn:LabelID="lblWebsite"runat="server"ControlName="txtWebsite"Suffix=":"/>
</td>
<td>
<asp:TextBoxID="txtWebsite"runat="server"MaxLength="255"CssClass="NormalTextbox"ValidationGroup="Guestbook"/>
<asp:RegularExpressionValidatorID="WebsiteFormat"runat="server"CssClass="NormalRed"Display="Dynamic"
ControlToValidate="txtWebsite"resourcekey="WebsiteFormat"ValidationGroup="Guestbook"ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?"/>
</td>
</tr>
<tr>
<tdclass="SubHead">
<dnn:LabelID="lblComment"runat="server"ControlName="txtComment"Suffix=":"/>
</td>
<td>
<asp:TextBoxID="txtComment"runat="server"TextMode="MultiLine"CssClass="NormalTextbox"ValidationGroup="Guestbook"width="200px"Height="50px"/>
<asp:RequiredFieldValidatorID="CommentRequired"runat="server"CssClass="NormalRed"Display="Dynamic"
ControlToValidate="txtComment"resourcekey="CommentRequired"ValidationGroup="Guestbook"/>
</td>
</tr>
<trrunat="server"id="trCaptcha">
<tdclass="SubHead">
<dnn:LabelID="lblCaptcha"runat="server"ControlName="ctlCaptcha"Suffix=":"/>
</td>
<td>
<dnn:CaptchaControlID="ctlCaptcha"runat="server"CssClass="normal"CaptchaChars="5"/>
</td>
</tr>
<tr>
<tdcolspan="2">&nbsp;</td>
</tr>
<tr>
<tdcolspan="2">
<asp:LinkButtonID="btnSign"runat="server"CssClass="CommandButton"ValidationGroup="Guestbook"resourcekey="btnSign"/>
</td>
</tr>
</table>
</asp:Panel>





Similar Threads
Thread Thread Starter Forum Replies Last Post
ascx control Title SKhna ASP.NET 2.0 Basics 1 March 18th, 2008 12:24 PM
Problem with RssReader.ascx user control retroviz BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 October 24th, 2007 07:06 PM
created a label in welcomebox.ascx control but... kherrerab BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 5 August 3rd, 2007 02:02 PM
RssReader.ascx.cs error mwalker BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 April 16th, 2007 04:14 AM
Include vs. User control(ascx) ajindal General .NET 4 January 8th, 2005 09:40 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.