ASP Routine

I need a routine to check for a number called CPF (just like Social
Security Number in USA). I already have a validation routine for that
number, but I still need to check if it exists on the institution
databank to avoid frauds on my system.

The idea is to build a "new user register page" and with a CPF field.
So, when the person enter his CPF, the ASP page would check on the
institution databank and validate or not the number. The url for the
public query is the following, remember to replace "hxxp" with "http"
to open the page correctly: Code:

View Replies


ADVERTISEMENT

CDO + CDONTS Email Routine?

Just curious... Some webapps that I develop could be deployed on older NT
systems OR Win2K3...

Is there a simple test for CDO/CDONTs that I can use in code so I could
implement both routines and use the one that's existing on the server?

View Replies View Related

Activating Sub Routine From Hyperlink

I am still playing with ASP and was wondering how to do this (it seemed
simple). What I want is to have a hyperlink that when it's clicked on, will
run a sub routine, instead of opening a web page... Right now I have;

Sub CreateLinks()
Response.Write "<br><br>"
Response.Write "<a href='OpenAllOrders()'>1. All Orders</a><br>"
Response.Write "<a href='OpenCustOrders()'>2. Customer Orders</a><br>"
Response.Write "<a href='OpenInvoices.asp'>3. Open Invoices</a><br>"
End Sub

Sub OpenAllOrders()
Response.Redirect "OpenOrders.asp?Customer=0"
End Sub

Sub OpenCustOrders()
Response.Redirect "OpenOrders.asp?Customer=1"
End Sub

The issue, is that clicking on the link, tries to open a web page file of
'openallorders()', instead of running the sub routine. Obviously I am
missing something simple... Can anyone point me in the correct direction
(think it has something to do with href... maybe it should be hsub or
something).

View Replies View Related

Error Handling Routine

I have an error handling routine that emails me the Err.Source, Err.Nbr, and Err.Description in the event of an error. How can I include the line number of the error as well and the filename?

View Replies View Related

Conditional Routine And Date

I'm trying to not show some data dependant on date but it never works right.

<% If Request.QueryString("EventDate") > DateAdd("d",6,Date()) Then %>

I have used similar routines before and it worked fine but this time i'm using a QueryString instead of a database field.

View Replies View Related

Syntax Error When Calling Sub-routine

For some strange reason, on a certain page of my site I cannot create sub-routines.

Everytime I get the same error, no matter where this subroutine is,
what it does, and what its name is.

Microsoft VBScript compilation (0x800A03EA)
Syntax error ..... etc...path...to...doc.asp, line 34
sub SubRoutineName()

What could be happening here?

View Replies View Related

Bubble-sort Routine Changing Array Values

I have part of a keyword search function that is acting supernatural - I have a bubble-sort function that sorts the content of an array, then returns an array containing the item numbers of the original array, arranged in order according to their content. Code:

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved