Home | Advertising Info94 USERS CURRENTLY ONLINE   
   Site Search Contact Us Friday, March 14, 2025  
 
 


 
ASPProtect
User Management Application with web based screens that allow you to manage users.
www.ASPProtect.com
 
ASPBanner
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
www.ASPBanner.com
 
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
www.ASPPhotoGallery.com
 
ASPClassifieds
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.
www.ASPClassifieds.com



DISCUSSION ARCHIVES
 



We didn't realize
the site was so popular.

Other Stuff
 

 
 
vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds



(Advanced)  (Components)  (Database)  (General)  (Vbscript)




ASPProtect

 
Subject: Re: ASP with VBScript
From: Phil Haigh
Date: 11/24/2000 6:51:01 AM
IP: 194.143.182.2



 

Question 1. To get this to work you need to get VBScript to add quites to either side of your value. If you look at an HTML form the format for defaulting a text field is VALUE="defualt". Try the following code:

<Input id="FirstName" Type="text"
Name="FirstName" value=<% = """"&strConcate&""""%>

Placing two double quotes together inside a quoted string results in a single quote being written to the output stream.

Question 2. This will be the right answer if youre asking how to display a single record out of a table, providing buttons to go to the previous and next records in the table.

In VBScript I keep a count of which record I am currently displaying. Then use VBScript I create previous and next links as follows (in this example the current record number is 10):

<A HREF="current_page.asp?recnum=9">Previous</A>
<A HREF="current_page.asp?recnum=11">Next</A>

Then at the start of the page I look for a form item recnum. If undefined, I start at record one. If defined, then that is the record Im going to display.

So, when youre showing record number x, clicking on previous re-enters the page and displays record x-1 and next displays x+1. Obviously you need to suppress previous if youre at record 1 and next if youre at the last record.

Hope that helps.

Previous Message


 

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright © 1998 - 2025 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages asp source code database MS SQL MS Access .mdb adovbs.inc cookies calendar codes sql commands scripts asp programming tutorials iis web server components CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com