Web Design Help
It's free to register, to post a question or to start / join a discussion
Stuck with this ASP code
Likes # 0
Posted November 17, 2008 at 10:41AM
Hi,
I am having problems with this peice of code. I am trying to see if this particular field in the recordset is empty and if it is then to display a message:
if Trim(buildingsInfo("actiontaken")) = "" then
Response.Write("Hello World")
I have even tried Len(buildingsInfo("actiontaken")) = 0 , but it still would not work even though the field is empty.
any suggestions???
Likes # 0
Likes # 0
Posted November 19, 2008 at 1:52PM
Have you tried IsNull(yourstring)?
It all depends on how and where you open your recordset and where on your page your doing your if statement.
Reply to this topic
This thread has been locked.
Check out PC Advisor's other tech forums
Top 5 Most Popular
-
New Xbox One release date, specs, features and price in UK
-
Samsung Galaxy S4 vs Nexus 4 smartphone comparison review: what's the best Android?
-
Samsung Galaxy S4 vs Apple iPhone 5 comparison review
-
Galaxy S4 vs BlackBerry Z10 comparison review - which is best, the Samsung or the BlackBerry?
-
Microsoft Windows 8 review



