473,404 Members | 2,137 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,404 software developers and data experts.

Multiple Data sources in TemplateColumn

The following gives me an error:

Character is not valid

The TemplateColumn

<asp:TemplateColumn Visible="true" HeaderText="Meets Job Rqrmnts"
ItemStyle-Width="170px" ItemStyle-VerticalAlign="middle">
<itemtemplate>
<asp:Label ID="ScreenSkills" Text='<%#
Container.DataItem("ScreenTestScoreDesc")%> <%#
Container.DataItem("SkillsTestScoreDesc")%>' runat="server"/>
</itemtemplate>
</asp:TemplateColumn>

I actually want to do it like so (with a slash and not a blank):

<asp:TemplateColumn Visible="true" HeaderText="Meets Job Rqrmnts"
ItemStyle-Width="170px" ItemStyle-VerticalAlign="middle">
<itemtemplate>
<asp:Label ID="ScreenSkills" Text='<%#
Container.DataItem("ScreenTestScoreDesc")%>/<%#
Container.DataItem("SkillsTestScoreDesc")%>' runat="server"/>
</itemtemplate>
</asp:TemplateColumn>

How would I do this?

Thanks

Tom
May 25 '06 #1
2 1011
AFAIK, you can concat them without creating a seperate <%#....%>

<asp:Label ID="ScreenSkills" Text='<%#
Container.DataItem("ScreenTestScoreDesc") + "/" +
Container.DataItem("SkillsTestScoreDesc")%>' runat="server"/>

I havent tested this. But, it should work

Kalpesh

May 26 '06 #2
Yes,

That did work.

Thanks,

Tom
"Kalpesh" <sh*********@gmail.com> wrote in message
news:11**********************@j73g2000cwa.googlegr oups.com...
AFAIK, you can concat them without creating a seperate <%#....%>

<asp:Label ID="ScreenSkills" Text='<%#
Container.DataItem("ScreenTestScoreDesc") + "/" +
Container.DataItem("SkillsTestScoreDesc")%>' runat="server"/>

I havent tested this. But, it should work

Kalpesh

May 31 '06 #3

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

Similar topics

3
by: Steve | last post by:
I have a people table of about 25 fields. The table is initially created each year from 5 different sources. The records from each source are appended to the people table. Any person may be in one...
1
by: Coder Coder | last post by:
Hi I want the DataNavigateUrlFormatString value to be of a couple of different variables such as: DataNavigateUrlFormatString="mypage?val={0}&val2={1} where now I have the following...
5
by: SSP | last post by:
Dear ASP.NETers, How would I insert multiple rows of data from a web form? Are there any tute's and stuff around. Couldn't find any myself. Thanks in advance. SSP
1
by: Maziar Aflatoun | last post by:
Hi everyone, I have the following TemplateColumn in a datagrid where I process my data in another function and return it's result. <asp:TemplateColumn HeaderText="File"...
7
by: Mike P | last post by:
I am binding data to a datagrid, but there is 1 field that I need to use a separate query to populate. This is the field : <asp:TemplateColumn HeaderText="SIP Account/s" ItemStyle-Width="75px"...
1
by: Greg Reynolds | last post by:
Hi, I need to create datagrid hyperlink columns with multiple parameters in the URL. In my research on how to do this, it is recommended to create a template column which I have done. The code...
5
by: Lie | last post by:
Hi all, I have problem in getting selectedindex of multiple listbox selection in a datagrid. I have a listbox with multiple selection mode inside datagrid. In Edit mode, I need to get back all...
4
by: DBLWizard | last post by:
Howdy All, I am trying to get the data from a row of a data grid in asp.net This is a data grid with five columns (two of the hidden) as follows: <asp:datagrid id="grdMatching"...
0
by: ashwin | last post by:
I have a Data Grid to display employee names and codes. On clicking a button (outside the datagrid) I perform some calculations which sets the fields of other columns in the datagrid. The problem...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
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.