Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Databases
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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
Reply With Quote
  #2 (permalink)  
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


Reply With Quote
  #3 (permalink)  
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
Reply With Quote
  #4 (permalink)  
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)

Reply With Quote
  #5 (permalink)  
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
Reply With Quote
  #6 (permalink)  
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.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:05 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.