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

How do you check the value of a datalist item within the Daalist bubble.

What I need to do is simple in any other code, but I am having a problem
finding the correct syntax for this function.

I have the following:

<form Runat="Server">

<asp:DataList ID="dlstCalendar" Runat="server">

<ItemTemplate>

<div align="left">

<table border="0" cellpadding="0" cellspacing="0"
style="border-collapse: collapse" bordercolor="#111111" width="600">

<tr>

<td><hr color="#008000"></td>

</tr>

</table>

</div>

<div align="left">

<table border="0" cellpadding="0" cellspacing="0"
style="border-collapse: collapse" bordercolor="#111111" width="600">

<tr>

<td align="center" valign="top"><font face="Arial">

<%# Container.DataItem("EventTitle")%>

</font></td>

</tr>

<tr>

<td align="center" valign="top"><font face="Arial">

<%# Container.DataItem("EventDate")%>

</font></td>

</tr>

<tr>

<td align="center" valign="top"><font face="Arial">

<%# Container.DataItem("EventTime")%>

</font></td>

</tr>

<tr>

<td align="center" valign="top"><font
face="Arial">&nbsp;</font></td>

</tr>

</table>

</div>

<div align="left">

<table border="0" cellpadding="0" cellspacing="0"
style="border-collapse: collapse" bordercolor="#111111" width="600">

<tr>

<td align="center" valign="top"><font face="Arial">

<%# Container.DataItem("EventLocation")%>

</font></td>

</tr>

<tr>

<td align="center" valign="top"><font face="Arial">

<%# Container.DataItem("EventAddress")%>

</font></td>

</tr>

<tr>

<td align="center" valign="top"><font face="Arial">

<%# Container.DataItem("EventCityStateZip")%>

</font></td>

</tr>

***If statement needed

<tr>

<td align="center" valign="top"><font
face="Arial">&nbsp;</font></td>

</tr>

***End if

</table>

</div>

<div align="left">

<table border="0" cellpadding="0" cellspacing="0"
style="border-collapse: collapse" bordercolor="#111111" width="600">

<tr>

<td><pre><font face="Arial" Size="3"><%#
Container.DataItem("EventDescription")%></font></pre></td>

</tr>

</table>

</div>

<div align="left">

<table border="0" cellpadding="0" cellspacing="0"
style="border-collapse: collapse" bordercolor="#111111" width="600">

<tr>

<td align="center" valign="top"><font face="Arial">

<a target="_blank" href="http://<%#
Container.DataItem("EventLink")%>">More Information</a>

</font></td>

</tr>

</table>

</div>

</ItemTemplate>

</asp:DataList>

</form>

What I need to do is check the value of Location, Address, and CityStateZip
and if any of these fields have text then I need to add a spacer so that it
does not meld with the description.

How do I make the follow statement work with the datalist bubble:

If Container.DataItem("Location") <> "" then

End if
Nov 18 '05 #1
0 1013

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

Similar topics

4
by: jenn | last post by:
Hi Anyone knows how to access to a value of a row in a datalist. Something like this in datagrid Dim str = MyDataGrid.Cell(0).tex I would like something like this Dim str =...
8
by: MattB | last post by:
I think I'm close to making this work, but so far it does not. I have a datalist (id = "dlVFields") on a web form that has an item template with a textbox in it. The textbox id = "txtVerify"....
3
by: David Kenneally | last post by:
Hello- I'm having a problem doing a file upload from within the edit function of a datalist. I have a simple file upload that works on a standard ..net page: <td width="53"><input...
8
by: Nevyn Twyll | last post by:
I have a multi-level datalist setup: DataList1 DataList2 MyGrid I have columns explicitly defined for the grid in the html. Sometimes, On the initial Load() of the Page, I want to add extra...
3
by: CVerma | last post by:
Hi, I have an embedded datagrid within a datalist. I am not able to perfrom paging in the datagrid. Any ideas? Here is my code: Here is my Simplegrid.cs file: using System; using...
1
by: David | last post by:
Hello. I have one question about DataList control: I have one DaaList control on my page in which I put some controls, for example I put two labels in header section and five labels in items...
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...
0
by: Isz | last post by:
PROBLEM: This problem is related to the postback and handling events correctly. BACKGROUND: I have a datalist which acts as a tabbes list with horizontal layout. This datalist is bound to a...
3
by: mroffey | last post by:
Hi everyone, I've been having this problem and I've searched high and low, but I can't seem to find the answer to what is probably a very simple solution. In a nutshell, I have a nested...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...

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.