Can I Get To The Application Object In A Class

I am trying to get to the application object from a seperate class in my ASP
application and I dont want to pass the object in as the class is inherited
to lots of other classes. So i can have something like the following:

Imports System.Web.UI.WebControls.DataGrid

Namespace Classes.Inheritable
Public MustInherit Class EntityCollection

Implements IDisposable

Private mobjDataConnection As Classes.Databases.DBConnection

Public Sub New(ByVal strSQL As String)
mobjDataConnection = Application("DataConnection")
End sub

View Replies


ADVERTISEMENT

Function/class Like As Recordset Object

i need a object/class/function that return me a array/object like this:

set oDataFromSQLServer = function_or_class(sql)

while oDataFromSQLServer.eof
value = oDataFromSQLServer("colum_name") oDataFromSQLServer.next

next

ps: I donīt want to use a Recordset in this case.
ps2: I don't want to use GetRows in this case, because it doesn't pertmit "string index" like array("columName")

View Replies View Related

Object Remote Java Class

Is there a way to access to a remote java class from an HTA Application?

View Replies View Related

Server.CreateObject Error: Server Object, ASP 0177 (0x800401F3), Invalid Class String

What do I need to do to enable CDONTS om my macine to make it working

I'm testing the code:

Dim objCDO
Set objCDO = Server.CreateObject("CDONTS.NewMail")
objCDO.To = "xyz@xxxxx.com"
objCDO.From = "zyx@zzzzz.com"
objCDO.Subject = "TESST CDONTS MAIL"
objCDO.Body = "SOME TEXT TO SEND OVER"
objCDO.Send
Set objCDO = Nothing

It gives me an error after Set objCDO =
Server.CreateObject("CDONTS.NewMail")
Server object, ASP 0177 (0x800401F3)
Invalid class string

View Replies View Related

One Application Object

We have our web site setup on two seperate servers. They are connected together through a BIG/IP server. I'm not sure how many of you are familiar with BIG/IP (load balancing) but I'll give you a quick explanation:

When a user goes to our site, they hit our BIG/IP server first. This server looks at our two web servers and determines which one has more resources to spare. The BIG/IP then redirects the user to that server, where they are on the rest of the time they are on our site.

So we have two web servers with duplicate web sites running. My problem is I need to run one application object between both servers. Is this possible, or is there a work-around?

View Replies View Related

Application Object ?

I am developing ASP application with complicated login system. There is several group of menu options. Each have form 5 to 15 sub-options.

User can work with any combination of options and sub-options and can see only these menu options which are allowed for him. "Rights rules" are store in SQL Tables and are getting after logon.

Now a questions:

1. what is the best way to store this menu structure (Session object is not allowed because it uses Cookies) ?

2. What is the best way to handle the "rights rules" ?

View Replies View Related

Application Object Links

Below you can find quick links to information about the Application Object. I would write a post like my CDONTS one, but I just don't have time, but when I do, I'll see if I can get one done.

An intro to the Application object, this its in JScript but its easy to change
Using the Application Object to Improve Performance

HOW TO: Declare an Array at Application Level Scope in Active Server Pages (Q165293)

A Real-World Example of Caching Data in the Application Object
W3 Schools Application Reference

HOW TO: Use the Application Object to Store ASP State

View Replies View Related

Application Object Or Variable!

The following code exists in a Global.asa file:

----------------------------------------------
<%
Set Application("Thing")=Server.CreateObject("THINGDOER.THINGY")
%>
----------------------------------------------

Will the above code snippet:

create a non-object Application variable named "Thing" & place it in
the Contents collection of the Application object?

-----OR------

create an Application object named "Thing" & place it in the
StaticObjects collection of the Application object?

View Replies View Related

Caching In The Application Object

There seems to be plenty of discussion about caching in the Application Object, however, I cant find any info on what realistic limitations there are and how they are measured.

What are the factors that will limit performance / storage of many individual or single large bits of data with application scope? eg database driven list boxes (that dont require up to the minute data) 10 * 100 options? 100 * 100 options? kb's? megs of info? How much can I cache?

View Replies View Related

Application Object Lost?

I'm having trouble with the workflow described bellow:

1. Asp page 1 on server A contains an iframe.

2. Asp page 1 submits a form targeted to the iframe, to Asp page 2 on
server B.

3. Asp page 2 runs in the iframe and at some point might decide to submit a
form targeted to the _top frame, to page 3 on Server B.

4. Page 3 loads in the top frame. Code:

View Replies View Related

Application Object And Close Connection

Rather than opening and closing a new connection to the database on every page, I have placed that connection into an Application variable. This has worked fine so far.

My issue is that I have a logoff page where it closes that connection.But this means that users who are on the application will not be able to access that connection.The obvious answer is that I don't close the database connection.But my problem is, I would like to eventually close that database connection.

How can I determine if an application variable (not session variable) exists?How can I determine that there are not any users on the application?

View Replies View Related

Application Object :: How Many Users Logged In?

My asp application allows a number of users to log into it. Each user has a different type of access level (General User, Manager or Administrator). I want the administrator to be able to see how many other users are logged into the application at a particular time. How can I do this? Would the use of an application object work for this?

View Replies View Related

Application Object :: Trying To Detect Multiple Logins

Im trying to detect multiple logins...

Im using a application object in my global.asa, for some reason it doesnt seem to work. here is my code

<script language="vbscript" runat="server">
Sub Session_OnStart
Session("LoggedIn")=0
End Sub

sub Application_OnStart()
Application("Logged")=1
End sub

</script>
In my pages if i print the Application("Logged") value, it does not show....

View Replies View Related

X-Post: Cannot Set Application Object In IIS6.0, But Could In IIS5

We have pretty simple ASP (not ASP.Net) application, which has been running fine on IIS4 and IIS5. It has now been moved to a sever running in the DMZ and managed by a 3rd party. The server is Win2003 and IIS 6.0.

Within the Globe.asa file, have an Application_OnStart SubRoutine (Visual
Basic) and it bombs out on the first line:

Application("cnSecurity_ConnectionString") = "connectionProperties"

With the error:

Server object error 'ASP 0177 : 800401f3'
Server.CreateObject failed
Globe.asa, line 25

View Replies View Related

Application Object :: Allow Only One User To Access Form

I'm looking for a way to allow only one user to access my web form at a time. so that if there is a user using my web page / html form.. then the next user is directed to another page. So only one user is allowed access at any given time .I was hoping there is a way to do this with Application variables.

View Replies View Related

Storing Complete Dbase Conn In Application Object

I am currently working on a small asp application. Now I would like to store the complete database connection in the application object. Note I want to store the connection NOT the connectionstring. For that purpose I wrote a small asp include which connects to the dbase and stores the connection object to the application object. However when I use this include in my pages then it doesnt work. What I am doing wrong? Here is the code:

View Replies View Related

Application Object :: Existence Of Variables, Resources And Locks

I'm using application variables for a web based sales tracking application. I use the variables for stuff like connection string, database name, etc. I store the values in a asp file that is included in a login page. The assignments are in a procedure that I then call on the login page. This is done everytime a user connects to
the login page.

what's happening to the variables? Are they being overwritten everytime a user accesses the page? I'm not checking for the existence of the variables. I just call the routine everytime the page is accessed. I know the values are shared for all users but, I was wondering if I should check for the existence of variables? Will it free up resources? Should I be using locks?

View Replies View Related

XML To Class

how can i generate a asp class from xml schema. (not .net)

View Replies View Related

FTP Class In .NET 1.1

I am trying to validate a persons FTP access (username and password) but I cannot find a way, in .net 1.1, to logon to an FTP server. In 2.0 there is a class for it but how do I do this in 1.1?

View Replies View Related

Matrix Class

I'm looking for a class or a library of functions for classic ASP 3.0 (no .NET) to manage matrix (bi-dimensional arrays) with simple math functions such as sum on the row/column, shift of row, shift of columns and so on...

Does anybody know if there's something available on the net?

View Replies View Related

Session Class

In trying to reduce database calls, I've created a class (we'll call it
MyClass) which is created in the login page. I'm trying to store it in a
session variable, and when I call the code:

Class Security
...
End Class

SET objSecurty = new Security
....
Session("Security") = objSecurity

On the session() = line, I get the error:

Session object error 'ASP 0185 : 80020003'
Missing Default Property
/login.asp, line 123
A default property was not found for the object.

Anyone got any ideas?

View Replies View Related

Using Java Class From ASP

I would like to know how to using java class file inside ASP page

I have placed the class file to C:WINNTjava rustlib
also, I have compiled it to 1.1 version

but it always prompt
error '800401e5'
No object for moniker

How can I solve this problems?

View Replies View Related

How To Use Class Instance In Asp.net

I have a Class and i want to be able to use its instance
example
public class Enrolltest : System.Web.UI.Page
{
MyClass mc = new MyClass();

mc.mymethod();

}

when i do this i get an error telling me there is no name space what should i do .,,.
i dont want to create a dll and add it to assembly and all that stuff.

View Replies View Related

Class Does't Exist

internet information server does not work. when i try to open any website
from iis it gives error :"Class does not exist"

View Replies View Related

Detect If A Class

I am working with a bunch of old code so I can really restructure the includes, otherwise I guess I could change all the #include statements to #include-once. Anyway, If I have a file with a class like this:

Class myClass
end class

I get a "name redefined" error. I've been seeing these and indeed from goolge searches, it's because the file is somehow included more than once. This problem doesn't occur for functions and the old code bases just used functions whereas I would like to add some classes. In C you used to be able to detect that at the top of the file and not included the rest of the file if it is allready included. I just want to at least detect it so I don't redeclare the class.

View Replies View Related

Class Assignment

I'm having problems with getting numbers to add in asp. I cannot find anything in my book on adding numbers together. All it says "you cannot add values from a textbox". I guess I'm having a brain-fart in a major way.

I working on a program to calculate the totals of rainfall for a year. Give the month that has the max and min and show amount, and show average for the year. Can some please tell me where to start or a code snippet to get me back on track. Code:

View Replies View Related

JAVA Class

I have written a JAVA class.it have compiled with -target 1.1 arguement and I just can instant it twice time.I can instant it at the first time and second time.When I try to instant it anymore,it prompt me "The remote procedure call failed and did not execute." message.What does it mean?

After,I need restart my web server.My java is used to create new socket and connect to other server.I am using getObject("java:classNameHere") method

View Replies View Related

Class Does Not Exist

I am running WinXP Pro and have IIS 5.1. I am developing a web site locally - everything was fine until today when I tried to preview the site I got a 'class does not exist' error (in case you ask I have turned off friendly http errors and this is the message I get). This message is also displayed when I try to access my local host.

View Replies View Related

MySQL Class

Are there any good free vbscript classes for handling mySQL databases? Or even a good tutorial on how to write a class for mySQL database (in vbscript).

View Replies View Related

Template Class?

Does anyone know of a good template class/system, which I can use in my ASP pages to seperate HTML from ASP?

View Replies View Related

Class Definition

Can we define events in a class when coding using VBScript in ASP? I still have the second question, even if the answer is positive. That is whether the two standard events of a calss module in VB, "Class_Initialize" and "Class_Terminate", is still availabe in VBScript? If not, then how to initialize an instance of a class automatically when it
is created?

View Replies View Related

Class Does Not Exist.

I'm getting the following error on my locahost at work when I browse in IIS. "Class does not exist. " I created a web site in classic asp but I get this error. When I check IIS for the web logs it gives me 18:52:07 127.0.0.1 GET /PatientPortal/blank.asp 500

View Replies View Related

ASP Vbscript Class Includes

I'm running into a problem with VBSCRIPT classes in ASP. I use a seperate file for each class I use. Some of these class files are included in multiple ASP scripts, but are also included in other include files. So if you can't see the problem already, it is that occasionally the class file will be included twice in the same script, relsulting in the following error:

Microsoft VBScript compilation error '800a0411'

Name redefined

/includes/classes/closableobjectlist.asp, line 2

Class ClosableObjectList
------^

Does anyone know a clean solution for this problem?

View Replies View Related







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