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

SHOW IF statement Help

Hi,

how could apply a 'Show IF' statement that would only show an entry if the
entry was a building name and not a number to the section below.

<td class="Collection"><span
class="DataSetText"><%=(Pricing.Fields.Item("COLL_ BUILDING_NAME_NO").Value)%
</span>

Example

want to show 1st line below

Heathrow Terminal 1 (This is stored in
Pricing.Fields.Item("COLL_BUILDING_NAME_NO").Value )
Croydon Road
Hounslow

Dont want to show first line below

23 ( This is also stored in
Pricing.Fields.Item("COLL_BUILDING_NAME_NO").Value )
South Audley Street
London
W1

Its just the numbers I dont want to show but i need to see the text.

Thanks in advance
Simon
Jun 14 '06 #1
2 1316

Simon Gare wrote:
Hi,

how could apply a 'Show IF' statement that would only show an entry if the
entry was a building name and not a number to the section below.

<td class="Collection"><span
class="DataSetText"><%=(Pricing.Fields.Item("COLL_ BUILDING_NAME_NO").Value)%
</span>

Example

want to show 1st line below

Heathrow Terminal 1 (This is stored in
Pricing.Fields.Item("COLL_BUILDING_NAME_NO").Value )
Croydon Road
Hounslow

Dont want to show first line below

23 ( This is also stored in
Pricing.Fields.Item("COLL_BUILDING_NAME_NO").Value )
South Audley Street
London
W1

Its just the numbers I dont want to show but i need to see the text.

Thanks in advance
Simon


Regular expressions:

<%
Dim str, re, retVal
str = Pricing.Fields.Item("COLL_BUILDING_NAME_NO").Value
Set re = new RegExp
re.Pattern = "[a-z]+"
re.Global = true
re.IgnoreCase = true
retVal = re.Test(str)
If retVal = true Then Response.Write str
Set rs = Nothing
%>

--
Mike Brind
%>

Jun 14 '06 #2
Thanks Mike,

Simon
"Mike Brind" <pa*******@hotmail.com> wrote in message
news:11**********************@c74g2000cwc.googlegr oups.com...

Simon Gare wrote:
Hi,

how could apply a 'Show IF' statement that would only show an entry if the
entry was a building name and not a number to the section below.

<td class="Collection"><span

class="DataSetText"><%=(Pricing.Fields.Item("COLL_ BUILDING_NAME_NO").Value)%
</span>

Example

want to show 1st line below

Heathrow Terminal 1 (This is stored in
Pricing.Fields.Item("COLL_BUILDING_NAME_NO").Value )
Croydon Road
Hounslow

Dont want to show first line below

23 ( This is also stored in
Pricing.Fields.Item("COLL_BUILDING_NAME_NO").Value )
South Audley Street
London
W1

Its just the numbers I dont want to show but i need to see the text.

Thanks in advance
Simon


Regular expressions:

<%
Dim str, re, retVal
str = Pricing.Fields.Item("COLL_BUILDING_NAME_NO").Value
Set re = new RegExp
re.Pattern = "[a-z]+"
re.Global = true
re.IgnoreCase = true
retVal = re.Test(str)
If retVal = true Then Response.Write str
Set rs = Nothing
%>

--
Mike Brind
%>

Jun 14 '06 #3

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

Similar topics

5
by: David Ehmer | last post by:
The code below is 2 rows in a table, the top row contains a message to be shown if the recordset returns no matches. The 2nd row will display any matches. Problem is that if no matches are found...
7
by: Anne M | last post by:
I have a report based on query..which is a team list with names and their role on team ie coach, assistant and player. Report is almost what I want and my knowledge is limited so I need some...
5
by: Robert Heuvel | last post by:
Hi, this is what I did: public struct SWaitCursor:IDisposable { public SWaitCursor (int i) { Cursor.Current = Cursors.WaitCursor; } void System.IDisposable.Dispose() { Cursor.Current =...
8
by: pmud | last post by:
Hi, I am using a compare validator in asp.net application(c# code). This Custom validator is used for comparing a value enterd by the user against the primary key in the SQL database. IF the...
2
by: Dean Slindee | last post by:
Anybody written code in VB.NET to: 1) show a print preview window of reports already written and stored in an Access 2002 database; or 2) execute the print of a report stored in an Access 2002...
2
by: Øyvind Isaksen | last post by:
Is it possible to show/hide a usercontrol code behind? <uc1:topart id="Topart1" runat="server"></uc1:topart> This is what i want to do, but this does not work: if objDR.read me.Topart1.show...
0
by: goldie2k | last post by:
OK. There must be a fairly easy way to do this. Below is my code for reference, but im stuck on how to pass the product_id pulled from the DB into the if statement to check if the file exists. ...
39
by: alex | last post by:
I've converted a latin1 database I have to utf8. The process has been: # mysqldump -u root -p --default-character-set=latin1 -c --insert-ignore --skip-set-charset mydb mydb.sql # iconv -f...
1
oranoos3000
by: oranoos3000 | last post by:
hi (i use php and mysql on os windows) i want to use statment in mysql like statement select top in sql server for show only 1 record with specific condition i use under statment as follow ...
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
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: 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
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
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.