I was wondering if someone could give me some info on what this element
acutally is... I've used it tons when definining a templated column in a
datagrid within <%# %>, but don't really know where it lives, etc. From my
reading, it seems that "container" might have something to do with a
"NamingContainer", is this correct? Is this namingcontainer a way to grab a
handle to an object when there's no alternative available? And beyond that,
is "dataitem" a collection member of the mysterious Container object? Perhaps
someone could point me to a link with additional info? Thanks for any
assistance.
-Ben 4 1317
Hi Ben,
check out this blog post. http://weblogs.asp.net/rajbk/archive...20/188868.aspx
Kaustav.
"Ben R." wrote: I was wondering if someone could give me some info on what this element acutally is... I've used it tons when definining a templated column in a datagrid within <%# %>, but don't really know where it lives, etc. From my reading, it seems that "container" might have something to do with a "NamingContainer", is this correct? Is this namingcontainer a way to grab a handle to an object when there's no alternative available? And beyond that, is "dataitem" a collection member of the mysterious Container object? Perhaps someone could point me to a link with additional info? Thanks for any assistance.
-Ben
Take a look at, it should explain what DataItem is. http://www.openmymind.net/databinding/index.html#3
Container is an instance of RepeaterItemEventArgs, DataListItemEventArgs or
DataGridItemEventArgs I believe...
Karl
--
MY ASP.Net tutorials http://www.openmymind.net/
"Ben R." <Be**@discussions.microsoft.com> wrote in message
news:88**********************************@microsof t.com... I was wondering if someone could give me some info on what this element acutally is... I've used it tons when definining a templated column in a datagrid within <%# %>, but don't really know where it lives, etc. From my reading, it seems that "container" might have something to do with a "NamingContainer", is this correct? Is this namingcontainer a way to grab
a handle to an object when there's no alternative available? And beyond
that, is "dataitem" a collection member of the mysterious Container object?
Perhaps someone could point me to a link with additional info? Thanks for any assistance.
-Ben
Thank you for the post, Karl. The info in the link was very useful.
-Ben
"Karl Seguin" wrote: Take a look at, it should explain what DataItem is. http://www.openmymind.net/databinding/index.html#3
Container is an instance of RepeaterItemEventArgs, DataListItemEventArgs or DataGridItemEventArgs I believe...
Karl
-- MY ASP.Net tutorials http://www.openmymind.net/
"Ben R." <Be**@discussions.microsoft.com> wrote in message news:88**********************************@microsof t.com... I was wondering if someone could give me some info on what this element acutally is... I've used it tons when definining a templated column in a datagrid within <%# %>, but don't really know where it lives, etc. From my reading, it seems that "container" might have something to do with a "NamingContainer", is this correct? Is this namingcontainer a way to grab a handle to an object when there's no alternative available? And beyond that, is "dataitem" a collection member of the mysterious Container object? Perhaps someone could point me to a link with additional info? Thanks for any assistance.
-Ben
Thanks Kaustav,
That blog is very interesting. Thanks for posting it.
-Ben
"Kaustav" wrote: Hi Ben,
check out this blog post. http://weblogs.asp.net/rajbk/archive...20/188868.aspx
Kaustav.
"Ben R." wrote:
I was wondering if someone could give me some info on what this element acutally is... I've used it tons when definining a templated column in a datagrid within <%# %>, but don't really know where it lives, etc. From my reading, it seems that "container" might have something to do with a "NamingContainer", is this correct? Is this namingcontainer a way to grab a handle to an object when there's no alternative available? And beyond that, is "dataitem" a collection member of the mysterious Container object? Perhaps someone could point me to a link with additional info? Thanks for any assistance.
-Ben This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: az bij |
last post by:
Hi,
I have a dataset bound to a repeater and want to place some logic in
my ascx file. I want to display an image link if and only if an image
is available.
I have tried without success...
|
by: Mike P |
last post by:
I'm having trouble with C# syntax for Container.DataItem. This is the
VB version. CAn anybody help me out with the syntax?
<asp:DataList runat="server" id="dlResults"
Font-Name="Verdana"...
|
by: bg |
last post by:
Hi!
How do I check if "date" exists before using that code?
I've built a RSSreader and sometimes there's a date in it and sometimes not.
How can I check if it exists to avoid crash...
|
by: bg |
last post by:
Hi!
How do I check if "date" exists before using that code?
I've built a RSSreader and sometimes there's a date in it and sometimes not.
How can I check if it exists to avoid crash...
|
by: alberthung01 |
last post by:
Hi all,
I try to use Container.DataItem() in my DataGrid's ItemTemplate.
Somewhere it works fine.
eg.<input type=checkbox id='cb_select_<%# Container.DataItem("TAG_ID")
%>' value='<%#...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
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...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
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...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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...
| |