Session_start Not Firing

I'm workinbg in Visual Studio 2003. I'm experimenting with creating a
session variable, and from all I can gather. the Session_Start event is not
firing.

In Global.asx.vb, in the Session Start event, I have the following:

Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
' Fires when the session is started
Session("varTest") = "123"
End Sub

First off, when I set a break point at that line, it is never reached when
the application starts. Secondly, when I try to post a test alert(), to
display Session("varTest"), it comes up blank (no error). Finally, if I set
Session("varTest") = "123" in my asp page, then display it, it shows up, all
of which leads me to believe that the global.asax file is not seen by the
project, even though it was inserted automatically.

View Replies


ADVERTISEMENT

Firing An App At The Server

I can fire an app at the server using wshell.run but how can i pass information to the application?

View Replies View Related

Firing OnChange


A drop down list is populated with certain values from the database and when the selection is changed the post is posted back to itself and ceratin other processing takes place on the same page, based on the selected value.
I have modified the code to make a default list item selection (using option selected etc. ) when the page loads the 1st time. I also want the onChange event to fire the 1st time (by taking this default selected item) on page load, not just when user makes a selection from the list.

View Replies View Related

Global.asa Not Firing

For some reason my global.asa file is not firing. I have it located in the
root of my website (e.g., wwwrootmywebsiteglobal.asa) and I have the web
site configured as an "application" in IIS. When I modified the file I also
stopped and restarted the web server.

View Replies View Related

Global.asa Intermittent Firing

Problem with global.asa not firing 100% of the time. This error crops
up several times throughout the day but if you wait a while and reload
the page (could be 5 mins or an hour) it will suddenly start working
again.

The error is:
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in
conflict with one another.
/footer.asp, line 101

Line 101 in the footer.asp file reads:
InnovationRS.Open sql, Application("AnymousConnection")

I believe that bad code would produce a persistent error message. The
application would either work, or generate an error 100% of the time,
not be intermittent. The error is now appearing 3 or 4 times a day with
different users reporting it, but like I said, if you wait a while and
refresh the page, it is working again. Code:

View Replies View Related

Session_OnEnd Method Not Firing

My Session_OnStart works but Session_OnEnd does not work. Here's the
code...can anyone tell me what's wrong with my code or if anything else
on the server that needs to be changed. The Session_OnStart does create
the folder for me with the SessionID as the folder name but
Session_OnEnd does not delete that folder. Code:

View Replies View Related

Dynamic Button OnClick Not Firing

In the code behind of my ASP.net web page I have code written that is
dynamically creating a button. Here is a sample of how I define it.

//Define Variable
Button btnNext;

public void someMethod()
{
btnNext = new Button();
button += new EventHandler(this.btnNext_Click);
//then i add the control to the page, then call its click event
btnNext_Click();
}

When I clickthis button on the page, the page postsback and its onclick
event is never called (stepping through the code shows that it never gets
reached). If I click the button a second time, the method is called and it
works fine.

View Replies View Related

Stop Firing Validation Controls

I have designed a form which process database Insert, edit and Delete(datagrid). I input userid,password and privilege in textboxes which has validation controls to verify data keyed in. And press the button to perform insert operation. Upto here is fine.

I want to perform edit or delete operations. I put datagrid for that one. After clicking the Update button for the row, the validation controls are firing again. I need to input some temporary data in the form fields to perform actual update operation. How can i stop firing validation controls at this stage?

View Replies View Related







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