Public Modules

Im coming from a visual basic 6 background.

I am making an ASP script with vbscript language.

anyways, in vb6, you can create a 'module' and put "public" functions and variables there.

how do I do that in ASP? i have a couple of functions that will be basically used on all pages (a function to prevent SQL injection).

So how do I create a page with all the public functions and use them on other pages?

View Replies


ADVERTISEMENT

Multiple ASP Modules Not Working On Web Page

I currently have designed a web page and inserted some ASP modules into it. But, if I insert more than one ASP module I receive an "Internal Server Error". If I delete the second ASP module the page works perfectly. So, my questions is this. Can you only insert one ASP module per web page? Where is the problem. Code:

View Replies View Related

Public SUB And FUNCTION

Can I create a Function or Sub in my GLOBAL.ASA file for all pages of my application to use? If not, how does one do this? For example, I have an "IIF" function since it isn't natively implemented in ASP. Currently I have an Include directive on every page that includes the scripting for this function. I'd rather just declare it once, globally.

'--- Provide IIF functionality to ASP -------------------------------
Function IIF(eval, trueVal, falseVal)
if (eval) then
IIF=trueVal
else
IIF=falseVal
end if
End Function

View Replies View Related

Querying Msx 5.5 Public Folders

Would anyone have a way to access certain Exchange public folders that
contain news group emails, perform a query on the folders for keywords and
return a list of those emails?

Basically, I've been asked to put a simple
single field on a web page that will query a list of exchange public folders
and return a list of those emails that have a key word match.

sort of like the MS Index server does on folders with files where one has an
asp interface to query the index data base.

View Replies View Related

Appointment To Public Folder

how we can add appointment to public folder in ms exchange from asp page.Can anyone give some pointer or sample code how to do such a thing.

View Replies View Related

Public Folders And Protection

we have a folder with pictures of signed up users. we are trying to protect this folder from the public in two ways. hide the relative path

e.g. /welcome/images/544235432.gif

makes it easy for a user to easily download this file . put a password and access the folder through this passwords .

View Replies View Related

Public VB Script Procedures

I have a VB script Sub() that is used by several ASP pages. How do I make it
globally available rather than having to replicate the source code in each
ASP page that uses it?

View Replies View Related

Difference Between Private And Public Function

What's the difference between a private function and a public function?

What's the difference between a function and a sub-routine?

View Replies View Related

Querying Msx 5.5 Newsgroup Public Folders

we would like to be able to put a simple query field on a webpage whereby users could enter keywords and then have some of the msx 5.5 public folders searched and return a list of those emails that match the criteria. would anyone know how that might be done useing asp and mapi?

View Replies View Related

Restricting Access To Website From Public

I'm creating a web application for my company now. This application has 2
parts. 1 part for the customers to access. The 2nd part is for our staff to
access only. My director hopes to make the 2nd part to be something like an
intranet, such that only our company's computers (maybe only 1 or 2 in the
company) can login to this part of the application.

1. My company's intending to put the application on shared server with a web
host. Windows Authentication is NOT allowed.

2. My company doesn't have a static IP address.

3. My manager suggested using Network Card number (which I don't really
quite understand. Is there a way to get the Network Card number that's on a
client PC?).

How??

Some ISP told us that they can provide a firewall management feature such
that it will restrict access to the website from anyone that is not coming
from my company's network. This requires Static IP.

Another told me that IIS Manager has the security feature that restrict
access based on IP address. This requires Static IP again.

Is it possible to implement the 2nd part (the part that is to be accessed by
my company's PC) as a windows application instead? Then we only put the
windows application on one computer. So, 1st part (for the public) will be a
web application, 2nd part (for my company) is a windows application, both
accessing the same database server from an ISP. Will the ISP allow the
windows application to access its database server? I've no experience in
making a windows application at all, is it the same as making a web
application?

View Replies View Related

Exporting From Outlook Public Folder

I am trying to take all the messages that are in a public message folder and export them to a database and then from there I can output to a webpage. I have it set up so I can do it all manually.I have to copy them all to a persoanl folder and from there I can export to a database.

I am looking for a way to automatically. Is it going to be possible to do, or will I need to take a look at making a Macro to do it? I havent done any real VB in quite some time, just VBScript in ASP's. I am trying to avoid doing the macro thing.

View Replies View Related

Access Exchange Public Calendar

Is it possible to access Exchange 2003 public calendar through ASP (Exchange & IIS will be in separate machine)?

View Replies View Related

Populate Data From Public Websites

I am going to construct a housing search website ... similar to www.mls.ca ... is there anyway I can populate the data(s) stores in their database? So when my user search for one kind of house, my website will return the data from the MLS database? Or there is similar way to get data from public websites?

Also, if a user search "sport" in my search text box, it will returns all the related links ... just like those search engine ... how can I acheive that? Or I need to pay or register to get the function?

View Replies View Related

Displaying A Calendar From Exchange - Public Folder

Is there a way to display a calendar created in a public folder? We are
using Exchange 2003 and have an intranet and I would like to pull the daily
view form the calendar and display it at the bottom of my daily
announcements page.

View Replies View Related

Difference Between Private Function And Public Function?

What's the difference between private and public functions in ASP? When should I use either?

View Replies View Related







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