473,396 Members | 1,938 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.

About ItemTemplate problem

I would like to know how to change the "Item" to other name...

e.g. in HTML Code
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "Item") %>
</ItemTemplate>

I wanna to change the "Item" to "Name" , after i press asp:Button in
webfrom.....

how can i do that?

Thanks
Nov 17 '05 #1
1 962
Alan,
Call a function from your ItemTemplate that determines what field to
display.

Marcie

On Mon, 11 Apr 2005 12:49:57 +0100, "Alan Ho"
<gt*********@yahoo.com.hk> wrote:
I would like to know how to change the "Item" to other name...

e.g. in HTML Code
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "Item") %>
</ItemTemplate>

I wanna to change the "Item" to "Name" , after i press asp:Button in
webfrom.....

how can i do that?

Thanks


Nov 17 '05 #2

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

Similar topics

2
by: VB Programmer | last post by:
I have a datagrid with a dropdownlist in it. As I understand it, the ItemTemplate section represents the cell when not in edit mode and the EditItemTemplate section represents the cell when in...
2
by: Bart Schelkens | last post by:
Sorry but I have another question about a button in a datagrid. I have the following button in my datagrid : asp:TemplateColumn HeaderText=""> <HeaderStyle width="20px"></HeaderStyle>...
1
by: Alan Ho | last post by:
I would like to know how to change the "Item" to other name... e.g. in HTML Code <ItemTemplate> <%# DataBinder.Eval(Container.DataItem, "Item") %> </ItemTemplate> I wanna to change the...
3
by: webserverpete | last post by:
I would like to have multiple <td> in a repeater control. The below code does not work: <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1" DataMember="DefaultView">...
1
by: Isoaxis | last post by:
I've read the 1000's of topics about accessing the text contained in ItemTemplates, but I'm still having a problem. Here's an excerpt my ASPX code: <ItemTemplate> <asp:Label ID="lblAppliesTo"...
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...
6
by: Edge | last post by:
hi all, I added a html table with 2 rows inside the itemtemplate of my gridview. It works ok, but the table border never touches the border of my gridview cell. How should I do if I want the...
3
by: Opa | last post by:
Hi, I have and XMLDataSource which I am using in a GridView control and am customizing the grid with <ItemTemplate>. My XML datasource has an element with an attribute called "private". I want...
12
by: =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= | last post by:
I'm doing a web app in VB/Dot Net 2.0. I'm probably a bit rusty and I have no experience using the repeater control. I have a user control I've created with multiple properties. I've created a...
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
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
1
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...
0
marktang
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,...
0
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...
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
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.