Application_OnStart Runs Twice

IIS 6 on 2003 Server. Application_OnStart runs when the first page is accessed (as it should). The next page is a frameset with 3 frames (2 ASP, 1 HTML). One of the ASPs properly accesses the existing Application object, the other ASP causes Application_OnStart to run again. Any idea why this is happening / how to prevent it?

I am only encountering this on one server, which leads me to think it is related to IIS settings.

More info: The site is set up as a virtual directory. The frameset and content pages reside in a sub-directory (also virtual, but no separate application object defined).

View Replies


ADVERTISEMENT

Application_OnStart

what type of information I can include in the Application_OnStart function. Can I include array definitions and declarations? Would I want to store this information here?

I'm thinking that I would like to create a base 'global' array definition in the Application_OnStart area so that I can keep a set size, but manipulate the size later on in my system.

View Replies View Related

Global.asa :: Application_onstart First Then Session_onstart?

Do I need to do a Application_onstart first then i can do Session_onstart?? or it doesnt matter which one is used b4 which one? When i use a global.asa, do i need to call it within my asp page to execute it or will it be auto started and execute?

View Replies View Related

When Does The Application_OnStart Event Trigger

In the global.asa file, when does the Application_OnStart event trigger?

Is it:-

1. When the webserver starts or
2. When the website is first accessed AFTER the webserver has started.

Further to this when would the Application_OnEnd trigger?

View Replies View Related

Query Runs Once

I have a form that is used for a search, works great. I added two tables to the database for keeping track of words used in the search, and created a stored procedure for inserting/updating these tables.
When I run the stored procedure in Query Analyzer or from within FireFox, all is well. But when I use IE and enter a word into the field and click "GO", the tables for keeping track get two insert/update data results.
Has anyone run across this, before? Any clue as to what is happening? Any suggestion on preventing IE from running the query twice?

View Replies View Related

Certain Script Runs Only When Directed From A Certain URL

I have 3 pages. Page 1 contains a form which a user enters in information. Page 2 contains a table which is populated by a database (it is looking up personal information about users which is populated from a database).

There is no input but values are still there. On this page, it will populate and the user can then click on a button to select a person and then go to the Page 3.

First, I need to know how to get these values from Page2 to carry over to Page3. Also, I want to know how to write a script that allows Page3 to determine from what page the user just came from.

The reason for this is because I want one thing to happen it if came from Page1 but something else to happen if the user came from Page2. I hope this makes sense. if it doesn't, I will try to re-phrase it.

View Replies View Related

Aspx Runs Outside Of Application

whether a web application needs to be defined in IIS as an "application" to run. We have a client who has a medium sized web site (~2,000 pages), including some ASP and some aspx pages. These were developed by different developers over the past several years.

What I don't understand is that some of the aspx pages compile and run fine, but they are not in a virtual directory or in a folder that's conifgured as an "application." They do read from a global.asax file in the web site's web-doc root folder. But the site at its root is not configured as a .net 'application' either (and the .asp pages throughout the site would all fail if it were, I think.)

Is there a 'global' web application for asp.net? If so, are there restrictions on it? For example, can I create a /Bin folder and have it work? (I've tried, and it hasn't but I'm not sure what I'm doing.) If not, how else could the site be configured so it runs the .aspx pages?

View Replies View Related

Open Application That Runs On Server...

i want to run an application...from the intranet site a client presses a button and the application opens in the server...how can i do this ? any ideas ???

View Replies View Related

JavaScript Where It Runs When Embedded In Asp Page

I want to know when we embed javascript or vbscript in asp pages where the script runs whether on client's browser or web server? also is there any possibilities like in asp.net we have "runat" wherein we can specify sever or client option available when we are programing in asp.

View Replies View Related

Open A New Window OnClick Which Runs An Additional Query

my objective is to click on an image and use the file path of the image as the variable in the next query, hence re running the same query but with "WHERE imageb " and not "WHERE imagea " with the value of imageb replacing min_vsim on the next query. this query can be excecuted preferebaly by a mouse click on the url of the image. Code:

View Replies View Related

500 Error Running On A Virtual Directory That Runs Asp.net With No Errors

I do not understand why. I am running perfectly well asp.net on a virtual directory, but if I put a simple asp file such as this, and named it foo.asp, and try to run it from this virtual directory, I get the 500 error:

<html>
<body>
<%
Response.Write("hello")

%>
</body>
</html>

Any ideas why? I check the Properties of this virtual directory, and under The Virtual Directory tab, Configuration button, App Mappings tab, I can see .asp listed pointing to
C:WINNTSystem32inetsrvasp.dll . If I look at this folder the dll exists.

I'm running windows 2000 professional. But I found the same problem in another computer running Windows 2003 server, IIS 6.0

View Replies View Related







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