472,952 Members | 2,188 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

datalist

Is there a way to render something before the DATALIST
encapsulation table gets rendered ? So that I could have Label
before actual table that is rendered by DATALIST...

<h1>Some Label</h1>
<TABLE ID='DataList' width='100%'>
*** inside datalist objects rendered ***
</TABLE>

Thanx to all...

Nov 19 '05 #1
5 1988
Huh? You trying to say you are after something like a "please wait" message?

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Petr SIMUNEK" wrote:
Is there a way to render something before the DATALIST
encapsulation table gets rendered ? So that I could have Label
before actual table that is rendered by DATALIST...

<h1>Some Label</h1>
<TABLE ID='DataList' width='100%'>
*** inside datalist objects rendered ***
</TABLE>

Thanx to all...

Nov 19 '05 #2
Not exactly that...

Datalist by design encapsulates all its contents into a table when it
renders.
It's quite easy to manipulate inside formating and layout. I'm trying to add
something
before the actual leading <TABLE> tag gets writen, from inside the DataList
control events.


"Curt_C [MVP]" <software_at_darkfalz.com> píše v diskusním příspěvku
news:FE**********************************@microsof t.com...
Huh? You trying to say you are after something like a "please wait"
message?

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Petr SIMUNEK" wrote:
Is there a way to render something before the DATALIST
encapsulation table gets rendered ? So that I could have Label
before actual table that is rendered by DATALIST...

<h1>Some Label</h1>
<TABLE ID='DataList' width='100%'>
*** inside datalist objects rendered ***
</TABLE>

Thanx to all...

Nov 19 '05 #3
If you have a control there you should be able to access it from within the
DataList events.... what error did you get?

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Petr SIMUNEK" wrote:
Not exactly that...

Datalist by design encapsulates all its contents into a table when it
renders.
It's quite easy to manipulate inside formating and layout. I'm trying to add
something
before the actual leading <TABLE> tag gets writen, from inside the DataList
control events.


"Curt_C [MVP]" <software_at_darkfalz.com> pĂ*še v diskusnĂ*m pøĂ*spĂŹvku
news:FE**********************************@microsof t.com...
Huh? You trying to say you are after something like a "please wait"
message?

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Petr SIMUNEK" wrote:
Is there a way to render something before the DATALIST
encapsulation table gets rendered ? So that I could have Label
before actual table that is rendered by DATALIST...

<h1>Some Label</h1>
<TABLE ID='DataList' width='100%'>
*** inside datalist objects rendered ***
</TABLE>

Thanx to all...


Nov 19 '05 #4
My DATALIST is placed straight on the page. (not placed in a PLACEHOLDER or
something)
and I would like to render LABEL or anything outside of the encapsulating
DATALIST table
from within the datalist control, and its procedures,events...
(itemdatabound, prerender... ?)

no error since I dont really know how to aproach it..
Thanx for your time Curt

"Curt_C [MVP]" <software_at_darkfalz.com> píše v diskusním příspěvku
news:68**********************************@microsof t.com...
If you have a control there you should be able to access it from within
the
DataList events.... what error did you get?

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Petr SIMUNEK" wrote:
Not exactly that...

Datalist by design encapsulates all its contents into a table when it
renders.
It's quite easy to manipulate inside formating and layout. I'm trying to
add
something
before the actual leading <TABLE> tag gets writen, from inside the
DataList
control events.


"Curt_C [MVP]" <software_at_darkfalz.com> pí1e v diskusním poíspivku
news:FE**********************************@microsof t.com...
> Huh? You trying to say you are after something like a "please wait"
> message?
>
> --
> Curt Christianson
> site: http://www.darkfalz.com
> blog: http://blog.darkfalz.com
>
>
>
> "Petr SIMUNEK" wrote:
>
>> Is there a way to render something before the DATALIST
>> encapsulation table gets rendered ? So that I could have Label
>> before actual table that is rendered by DATALIST...
>>
>> <h1>Some Label</h1>
>> <TABLE ID='DataList' width='100%'>
>> *** inside datalist objects rendered ***
>> </TABLE>
>>
>> Thanx to all...
>>
>>
>>
>>


Nov 19 '05 #5
You can put a label on the page, along with an ID, you should be able
to reference it from anywhere, whether it's inside or outside of the
datalist. For example:
<asp:Label ID="theLabel" runat="server" Text="This is the label"
Visible="false"/>
<asp:DataList ID="theDataList" runat="server" ... />

If you are trying to create a label at runtime (though I don't know why
you would; you could just make it not visible until you need it), put a
placeholder where you want the label, and add the label to the
placeholder at runtime. For example:
<asp:PlaceHolder ID="thePlaceHolder" runat="server"/>
<asp:DataList ID="theDataList" runat="server" ... />

Or am I misunderstanding?

Nov 19 '05 #6

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

Similar topics

1
by: pete K | last post by:
Is it possible in asp.net to have a datalist in the itemtemplate of another datalist? For example: <asp:datalist id="MyList" runat="server"> <ItemTemplate> <table border="0" width="300">...
4
by: V. Jenks | last post by:
What seems like a simple thing is apparently not so straightforward? I have a datalist. Inside of that datalist is an <itemtemplate> secion which contains other server controls such as a...
10
by: Bharat | last post by:
Hi Folks, Suppose I have two link button on a page (say lnkBtn1 and lnkBtn2). On the click event of the lnkbtn1 I have to add a dynamically created control. And On the click event of the lnkBtn2 I...
4
by: Patrick.O.Ige | last post by:
I have a CheckBoxList in a DataList and i'm trying to get item Selected after doing a postBack. I have set my CheckBoxlist AutoPostBack="True" Any ideas what 'm doing wrong? It seems not to...
6
by: Paul | last post by:
I am trying to use a DataList and the ItemTemplate. I am binding the Datalist to a SQL query that gives me a list of Items with a Parent Category. I want to loop through all the items, but...
2
by: Hans Merkl | last post by:
Hi, I am trying to use a user control as EditItemTemplate in a DataList. It loads fine but I can't figure out how to bind to the data of the DataList. Here is what I have got so far: ...
3
by: Mirek Endys | last post by:
I have DataList as part of DataList item. DataList in DataList. The parent DataList working well including Edit command, that shows Edit template and correctly bind the data into edit template...
0
by: Les Caudle | last post by:
I have a menu system composed of a DataList nested inside a DataList. The outer DataList has it's DataSource (composed of a DataSet with two tables linked by a CategoryPagesRelation Relation) set...
1
by: AJ | last post by:
Hi all, With the following code in mind : <asp:DataList ID="dlOne" DataKeyField="myField1" DataSource="<%# GetDataSource1()" Runat="server"> <ItemTemplate> Output Value Here! <asp:DataList...
3
by: Crazy Cat | last post by:
Hi all, I am developing an asp.net 2.0 application in Visual Studio 2005. On my page I have a simple datalist that is bound programmatically to a collection of simple objects. On this page I...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

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.