473,396 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problems with asp:placeholder nested withing datalist

Hi,

I am wanting to add a usercontrol programatically to a placeholder's control
collection. The placeholder is coded within the ITEMTEMPLATE of a datalist.
The problem that I am facing, is that when I render the page, the
placeholder variable (that I have declared as per the ID of the placeholder
control), is throwing an error of object not set. When I do a watch on the
placeholder variable, it's value is NOTHING, implying that it has not been
tied to the actual control.

I have checked and rechecked to ensure that the variable name is the same as
the control's ID. I have tried creating other controls within the
ITEMTEMPLATE, and the same thing happens - they do not instantiate with the
page's render. I thought that perhaps they only instantiate once the
datalist item object is created, so inspected the state within the
datalist.itemcreated event - same thing.

Am slowly losing hope - any help would be great.

Cheers

Chris
Nov 17 '05 #1
0 1121

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Stephen | last post by:
I want to create a data entry form consisting of X rows of HTML input fields. X = number of rows that the user will determine when the web page is running. I was able to use an asp:placeholder...
1
by: Chris Fink | last post by:
Hello, I have an ASP Datalist in which I am binding a value within the <itemtemplate> section as follows: <%# DataBinder.Eval(Container.DataItem, "week")%> This displays the week value as...
1
by: Chris Fink | last post by:
Hello, Does anyone know of a way to prevent the asp:datalist control from creating html code table and table row tags when it is rendered. I have normally just incorporated this into the layout...
1
by: Dan | last post by:
I have an asp.net page default.aspx with a user control and a placeholder control. <html> <body> <form id="myform" method="post" runat="server" /> <PageHeader:Header id="header1"...
2
by: Brett Robichaud | last post by:
I'm trying to create a Page class that I derive all others from. This page class will look for an asp:placeholder and insert some html at that point. I can see how I can create new HTML controls...
3
by: Harry | last post by:
Hi, Can anyone tell me why the below code does not work. I dont get any errors, but nor does the Text for the asp:label get set. Thanks in advance as always H
2
by: R.A.M. | last post by:
Hello, I need your help in a problem of putting and accessing asp control in FooterTemplate of asp:DataList. I created a DataList: <asp:DataList ID="BooksList" runat="server"...
5
by: studio60podcast | last post by:
I have an ASP:Placeholder and I'm trying to populate with Label controls from the code behind after a button click, essentially creating a list of selections. But each time I click the button,...
1
by: ckb | last post by:
Hi, This bit of code throws error Expected End of statement at line1 <asp:Table Width="100%" > <asp:TableRow id="T2r1"> <asp:TableCell id="T2r1c1" Width="85%"> <asp:PlaceHolder ID="PlaceHolder1"...
3
by: 200dogz | last post by:
In terms of disaplying text on the server side, which one is the better choice - an asp:Label or an asp:Placeholder? The only difference between the two that I know is that label puts a <span> tag...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.