
Implementing a Simple Login State Mechanism
s ASP programmers, you have probably received a request to password protect a portion of the Web site you are developing. The client wants the user to access pages A,

s ASP programmers, you have probably received a request to password protect a portion of the Web site you are developing. The client wants the user to access pages A,

Since the arrival of FrontPage 2000 users of Visual InterDev 6 have been complaining about connection problems. The trouble isn’t actually with the FP 2000 extensions. It is the failure

Question: How easy/hard is it to hack into a database? How do they hack into them, and where can I get some basic information on database privacy and security? Answer:

Question: Why would a call to a virtual function execute slower than a call to a non-virtual function? Answer: Because the call is resolved through an additional level of indirection?instead

Question: I’m surprised the following code doesn’t compile: class C1{public: virtual void f() { /* … */ } void f(bool) { /* … */ }};class C2 : public C1{public: void

Question: I have a function halfway through a program, which should allow the user to quit the program, at the moment it just carries on to the next function call.

Question: How do I set up my Outlook 2000 client to autopopulate the user name and domain name in the Enter Password dialog box during startup? Answer: The best way

Question: When I start the Onmonitor program and run Status, I receive the message, “Unable to attach to shared memory.” But I have Informix 7.23 for AIX! What’s going on?

Question: I am trying to create a client e-mail listing to go out to all our company clients. What would be the easiest way to do this? Answer: The easiest

Question: I have seen a few tips regarding opening a Web browser using the Run command or using the ShellExecuteA external command. If I want to open multiple pages one

Question: How do you get C++ to run an outside program? How do you type this in the source code? Answer: You can invoke another executable from your programming by

Question: When using PowerBuilder as a front end for doing SQL queries, I get the following pop-up message when I look for someone with a single quote in their name

Question: I am currently writing a generic system where user object names are stored in a database and instantiated upon request. This is currently working beautifully, but I fall short

Question: What is the standard rule on access specifiers associated with superclasses? Old C++ compilers would not allow protected superclasses. But, the book I’ve read about OOAD allows it. Example:

Question: Is there a compatibility problem between users with Exchange 4.0 as their home server and users with Exchange 5.5 as their home server? As a user who has Exchange

Question: What does “Today – @sub” equate to in Oracle and what does it mean? Answer: It doesn’t look like anything in Informix, and I couldn’t find any reference on

‘ Convert a number into its textual equivalent.’ ‘ Pass True in the second argument if you want a null string when ‘ zero is passed.’ This is a recursive

‘ The Soundex code of an alphabetical string” you can use Soundex code for phonetic searches’ Beware: this isn’t bullet-proof!” UPDATE: this version corrects a bug in the original routine’

‘ Strip all extended ASCII characters’ (that is, all characters whose ASCII code is > 127)’Function StripExtendedASCII(source As String) As String Dim index As Long Dim bytes() As Byte ‘

‘ Strip all control characters (ASCII code < 32)'' If the second argument is True or omitted,' CR-LF pairs are preservedFunction StripControlChars(source As String, Optional KeepCRLF As Boolean = _

‘ Return the next occurrence of a whole wordFunction InstrWord(start, Text, search, compareMethod) As Long Dim index As Long Dim charcode As Integer ‘ assume the search fails InstrWord =

‘ Replace a whole wordFunction ReplaceWord(Source As String, Find As String, ReplaceStr As String, _ Optional ByVal Start As Long = 1, Optional Count As Long = -1, _ Optional

If you execute a SQL statement in a stored procedure after your use the RAISERROR command, you will clear @@ERROR. This is true even if you use a RETURN and

Beginners are sometimes stymied when they get error messages on code that works perfectly elsewhere. For example, this code produces the error message, “Cannot use parentheses when calling a Sub”:

I often go to a site, scroll to the bottom, and see when it was last modified. If it says “March 1, 1825” then I am usually not so confident

Question: I want to create a three-tier application that has a browser front end and a Visual Basic middle-tier. How do I access my VB code from ASP? Should I

Question: I am trying to set up a recordset from the results of a form. On the ASP page, I have set a variable to the entry from the form

Question: We have an ASP page that displays product information from a database. We also have a button to download/view a related PDF file that should only appear on the

Question: I have data (text + CR + LF) stored in SQL Server 6.5 as a TEXT data type. When I want to display the data on an ASP page,

import java.util.*;import java.io.*;class Class1 { static Vector split(String string,String delimiter) { //StringTokenizer that works with empty strings boolean wasDelimiter=true; String token=null; Vector vector=new Vector(); if(string!=null) for(StringTokenizer stringTokenizer=new StringTokenizer(string,delimiter,true);stringTokenizer.hasMoreTokens();) { if((token=stringTokenizer.nextToken()).equals(delimiter))