473,804 Members | 2,536 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2055
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_da rkfalz.com> píše v diskusním příspěvku
news:FE******** *************** ***********@mic rosoft.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_da rkfalz.com> pĂ*še v diskusnĂ*m pøĂ*spĂŹvku
news:FE******** *************** ***********@mic rosoft.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,even ts...
(itemdatabound, prerender... ?)

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

"Curt_C [MVP]" <software_at_da rkfalz.com> píše v diskusním příspěvku
news:68******** *************** ***********@mic rosoft.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_da rkfalz.com> pí1e v diskusním poíspivku
news:FE******** *************** ***********@mic rosoft.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:PlaceHolde r ID="thePlaceHol der" runat="server"/>
<asp:DataList ID="theDataList " runat="server" ... />

Or am I misunderstandin g?

Nov 19 '05 #6

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

Similar topics

1
1768
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"> <tr> <td><%# DataBinder.Eval(Container.DataItem, "title") %></td>
4
3101
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 label, a radiobuttonlist, etc. I'm driving myself insane trying to figure out how to get
10
2860
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 have to add a datalist control. Using this datalist control I should be able to add edit, modify and cancel the items listed in this control. Here is how I designed. I used placeholder to add the controls dynamically to the page on the click...
4
4045
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 work:( Thanks My CheckBoxList in the DataList Below
6
9596
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 only print the Parent Category once, regardless of how many child items are in it. So my perfect output would look something like:
2
3453
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: //Page_load of my user control protected void Page_Load(object sender, EventArgs e) { IDataItemContainer DataContainer = this.Parent as
3
10305
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 (where is the child DataList).... But in case I want to make Edit in this child DataList it is not working... No edit template showed... :( this is a code that i use for the child DataList... Edit command // this is for child DataList...
0
1652
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 in the Page_Load. The inner DataList has its DataSource set in the ascx file as: <asp:DataList ID="PageList" runat="server" CellPadding="3" CellSpacing="0" DataSource='<%#...
1
2665
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 ID="dlTwo" DataKeyField="myField2" DataSource="<%# GetDataSource2(?,?)" Runat="server">
3
2814
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 need to control the visibility of a textbox based on a dropdown selection in the datalist's edititem template. To do this, I registered a client script block function and attached a client side handler for the dropdownlist's onchange event in the...
0
9591
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10343
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10331
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10087
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7631
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6861
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4306
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.