Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Collapsible Panel Extender. Going Crazy. I need some feedback. Another Bug?

Reply
Thread Tools

Collapsible Panel Extender. Going Crazy. I need some feedback. Another Bug?

 
 
shapper
Guest
Posts: n/a
 
      07-04-2007
Hello,

I am having problems with Collapsible Panel Extender on my web site
and always getting an error:

Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: child

Well, I tried everything to solve this and no success. Is this another
AJAX Control Toolkit Bug?

I created a sample page. Could someone please try it out and provide
me some feedback on this?

ASPX Code:

<%@ Page Language="VB" AutoEventWireup="false"
CodeFile="Default2.aspx.vb" Inherits="Default2" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI" TagPrefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asplaceHolder ID="ph" runat="server"></asplaceHolder>
</form>
</body>
</html>


ASPX VB:NET Code:

Partial Class Default2
Inherits System.Web.UI.Page

Protected WithEvents cpeOptions As CollapsiblePanelExtender
Protected WithEvents lHeader As New Label
Protected WithEvents lOptions As New Label
Protected WithEvents pHeader As New Panel
Protected WithEvents pOptions As New Panel

Protected Sub Page_Init(ByVal sender As Object, ByVal e As
EventArgs) Handles Me.Init
With ph.Controls
.Add(pHeader)
.Add(pOptions)
.Add(cpeOptions)
End With
pHeader.Controls.Add(lHeader)
pOptions.Controls.Add(lOptions)
End Sub ' Page_Init

Protected Sub cpeOptions_Init(ByVal sender As Object, ByVal e As
EventArgs) Handles cpeOptions.Init

With cpeOptions
.CollapseControlID = "pOptions"
.ExpandControlID = "pOptions"
.ID = "cpeOptions"
.TargetControlID = "pHeader"
End With

End Sub ' cpeOptions_Init

Private Sub pHeader_Init(ByVal sender As Object, ByVal e As
EventArgs) Handles pHeader.Init

With pHeader
.ID = "pHeader"
.Width = Unit.Pixel(600)
End With

End Sub ' pHeader_Init

Protected Sub pOptions_Init(ByVal sender As Object, ByVal e As
EventArgs) Handles pOptions.Init

With pOptions
.ID = "pOptions"
.Width = Unit.Pixel(600)
End With

End Sub ' pOptions_Init

Private Sub lHeader_Init(ByVal sender As Object, ByVal e As
EventArgs) Handles lHeader.Init

' Define lHeader properties
With lHeader
.ID = "lHeader"
.Text = "Header Text"
End With

End Sub ' lHeader_Init

Private Sub lOptions_Init(ByVal sender As Object, ByVal e As
EventArgs) Handles lOptions.Init

' Define lOptions properties
With lOptions
.ID = "lOptions"
.Text = "Options Panel Text. This is some sample text"
End With

End Sub ' lOptions_Init

End Class

Thanks,

Miguel

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Collapsible Panel Extender David C ASP .Net 3 12-14-2009 11:18 PM
implementation of collapsible panel control in asp.net bhawneshkumar Software 0 07-17-2009 05:38 AM
listview with a collapsible panel that has a updatepanel and listv Giorgio ASP .Net 0 07-03-2008 09:41 PM
AJAX collapsible panel Events Question: probashi ASP .Net 1 04-19-2007 02:47 PM
AJAX collapsible panel and ASP.NET Profile probashi ASP .Net 2 04-09-2007 04:53 PM



Advertisments