468,549 Members | 2,098 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,549 developers. It's quick & easy.

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 1718
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by pete K | last post: by
4 posts views Thread by V. Jenks | last post: by
10 posts views Thread by Bharat | last post: by
4 posts views Thread by Patrick.O.Ige | last post: by
6 posts views Thread by Paul | last post: by
3 posts views Thread by Mirek Endys | last post: by
1 post views Thread by AJ | last post: by
3 posts views Thread by Crazy Cat | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by UniDue | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.