Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 20th, 2005, 06:29 AM
Authorized User
 
Join Date: Apr 2005
Location: Karachi, , Pakistan.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Don;t diplay text box if it is empty or null

using vb.net n sql server

i want to display only thoes text boxes which have some value

for example

information regarding customer xyz

there are

firstname.text
address.text
email.text

and there is another customer whos address is not avaliable

firstname.text
email.text

it shld be in this form

thanks in advance




Abdul Wasie
__________________
Abdul Wasie
 
Old May 20th, 2005, 06:56 AM
Authorized User
 
Join Date: Jul 2004
Location: , , .
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default

if address.text="" then
  address.visible=false
endif


 
Old May 20th, 2005, 11:57 AM
Authorized User
 
Join Date: Apr 2005
Location: Karachi, , Pakistan.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

this will waste the space on the form

like

some.text - visible
some1.text - invisble - the space will remain empty
some2.text - visible

i want it in this manner

some.text - visible
some2.text - visible - the next visible text shld appear on the place of above invisble text

okay thanks for replying..


Abdul Wasie
 
Old May 20th, 2005, 02:59 PM
Friend of Wrox
Points: 4,332, Level: 27
Points: 4,332, Level: 27 Points: 4,332, Level: 27 Points: 4,332, Level: 27
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2003
Location: , NJ, USA.
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

   If you set your page to flowlayout, and of the texboxes that are set to visible = false will not show and the other texboxes will move left or up(if you use a table to lay out the objects)

 
Old May 20th, 2005, 10:02 PM
Authorized User
 
Join Date: Apr 2005
Location: Karachi, , Pakistan.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

would u plase explain the table layout??

Abdul Wasie
 
Old May 20th, 2005, 11:49 PM
Friend of Wrox
Points: 4,332, Level: 27
Points: 4,332, Level: 27 Points: 4,332, Level: 27 Points: 4,332, Level: 27
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2003
Location: , NJ, USA.
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

   Once the page is set to flowlayout, when you add controls they will just appear on after the other horizontally on the page for the width of the page, then continue on the next line.
   To align your controls the way you want, you need to add a table to your page, and put the controls in it to arrange them the way you would like.





Similar Threads
Thread Thread Starter Forum Replies Last Post
text box empty problem MunishBhatia ASP.NET 2.0 Professional 2 October 10th, 2007 07:39 AM
0, Empty Strings and Null Loralee Access 8 August 10th, 2005 10:13 PM
Difference between null and empty string shoakat Classic ASP Databases 4 September 10th, 2004 11:40 AM
How to insert default value if text box is empty akc Javascript How-To 2 November 7th, 2003 11:55 AM
search for null /String.Empty in Active Directory georgeh C# 1 October 16th, 2003 08:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.