Home | Advertising Info28 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: Hiding HTML Code using VBScript within and ASP
From: Jeremy
Date: 5/9/2001 3:49:49 PM
IP: 170.253.240.1



 

I'm trying to hide some html code using vbscript. This all resides within an ASP page. What I'm attempting to do is based on a result set from a database connection hide a specific section of html code using an if statement. Here is the code:
<%
strIDNum= Request.Cookies("USER_INFO")("PersonnelNumber")
set rsSecurity = server.CreateObject("ADODB.RECORDSET")
rsSecurity.ActiveConnection = objConn
strSQL1 = "SELECT FirstName FROM contactinfo WHERE empID = '" & strIDNum &"'"
rsSecurity.open strSQL1, objConn
if (rsSecurity.RecordCount = 1) then
%>


<TD ALIGN="LEFT" VALIGN="MIDDLE"><INPUT TYPE="Submit" NAME="Submit" VALUE="Submit"></td>

<TD ALIGN="LEFT" VALIGN="MIDDLE" WIDTH="25"> </td>

<TD ALIGN="LEFT"><INPUT TYPE="text" NAME="companyname" VALUE="" SIZE="20" MAXLENGTH="150"></td>


<TD ALIGN="LEFT"><INPUT TYPE="text" NAME="phonenumber" VALUE="" SIZE="15" MAXLENGTH="15"></td>


<TD ALIGN="LEFT"><INPUT TYPE="text" NAME="email" VALUE="" SIZE="35" MAXLENGTH="35"></td>
</tr>
<tr>
<td>  </td>
</tr>
<%
end if
%>

Currently, the html code is being hidden either way and the resultset.recordcount is returning -1.

Thanks in advance for the help.

Jeremy


Follow Up - The Right Cursor - J. Paul Schmidt 5/16/2001 2:59:09 AM

Follow Up - Re: Hiding HTML Code using VBScript within and ASP - rad 6/12/2001 5:00:12 AM


 

   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