Losing Variables...

i have page1.asp that has a form and two text fields that user can enter and submit...

ok now i am sending these form variables to page2.asp..no problem here...

now page2.asp has a include file called page3.asp....in page2.asp we call some functions that are available in page3.asp...one of the funtions calls back the page2.asp...

at this point of time i am losing the form variables on page2.asp that i had from page1.asp since page2.asp is being called from the function in a include file(page3.asp) and not from page1.asp

how can i overcome this situation and still retain my form values on page2.asp

View Replies


ADVERTISEMENT

Losing Session Variables?

I recently upgraded my web server and SQL server to Windows Server 2003. I am running MS SQL 7.0 on the SQL Server. I had been running my application on Windows NT and experienced no issues for about 3 years. Now on the new servers I am getting multiple errors and I think I might be losing my session variables.

The errors I am getting are similar to errors I would get in NT when I was logged in to the app but inactive for a long period of time and attempted to resume work. Code:

View Replies View Related

Losing Session Variables

I have been trying to solve this for some time now. I am setting a session variable to a value and calling response.redirect(). In the redirected page i am reading the session variable and it is blank. I printed the sessionid on both the pages to make sure that i have not lost the session itself.

The ids are the same on both the pages. It is just that all the session variable have becoce blank. I even looped through the session variables and all the session variables i created in the first page are present in the second page also, but without
their assigned values.

View Replies View Related

Session Variables Losing Information With IIS 4.0 And I.E. 5.0

How can I resolve the issue of session variables losing information with IIS 4.0 and I.E. 5.0? I changed the regsitry setting Microsoft suggests but that did not work.

View Replies View Related

Reason Of Losing Session Variables

what might be the reason for losing session variables, i was working on a page where i had to stroe a array in a session(trust me that was the only 'way' i could imagine doing it), and i am losing the session variable, its just returning empty values.

View Replies View Related

Losing Session Variables Frequently.

My ASP (VBScript) application is losing sessions after only moments of being logged in.

Sesssion.Auth is set at login - 'session("auth") = true' - and checked as each page loads with an if statement containing - 'AND not session("auth")'.

It is running on Windows Server 2003. The problem occurs only on the live site....the test site is on IIS 5.1.

View Replies View Related

Losing Session Variables On Test Not Production

The production system is running on NT. I have two test systems, one on 2000 server and one on XP Pro. All run IIS, server version depending on OS. All the pages check to make sure that the user logged on by checking the variable Session.Contents("LoggedIn").

One page changes directories: from https://<domain>/<virtual directory 1>/<virtual directory 2>/page.asp to https://<domain>/<virtual directory 1>/<virtual directory 3>/nextpage.asp.

It works fine in production. In both test systems the value of Session.Contents("LoggedIn") is lost and so the user is redirected to the login screen.

This has happened since I copied the production site to my test sites. Any ideas?

View Replies View Related

Im Losing Authentication

i have setup authentication on my website by setting session variables and it works but every once in a while the variables are lost and my users are logged out of the site

can someone tell me why this happens and how to fix it?

View Replies View Related

Losing Session

I have created an asp page with a submit button in it. On the onclick event I have written a java script to open a new pop up window that does the file upload. Unfortunately, whenever I click on the submit button to pop up the new window,I lose session. Any clues on how to persist my session value.

View Replies View Related

Losing Value When Passing As QueryString

I am passing
a value held in a session variable on a url. It works fine locally
testing but when I put it on the main web server the value disappears.
Nothing fancy here, real simple...what I am missing ?

<a href="http://ServerName/ReportServer?/SomeRpts/rpt1&urid=<%=
Session("txtURID") %>"
target="blank">Contracts - Client Listing</a>

View Replies View Related

Textfield Losing Focus

I have a bunch of text fields that the user tabs through. How would I go about calling a function when a specific textbox loses focus so that when they tab out I can make a pop up and allow them to select some info

View Replies View Related

Losing Formatting Spacing

I am working with an .asp page that creates an email using CDONTS. I need to be able to capture a text screenshot out of a mainframe session and send it in the email. When the email is sent, I am losing the spaces that align the screenshot. Ex.

THIS IS A PRIVATE COMPUTER NETWORK ---

UNAUTHORIZED USE WILL RESULT IN PROSECUTION

Returns> THIS IS A PRIVATE COMPUTER NETWORK --- UNAUTHORIZED USE WILL RESULT IN PROSECUTION .

View Replies View Related

Losing Data On Submit

I am using dropdowns and they are populating correctly. I am having problems when I submit to the Dbase. I am losing the rest of the entry. This is a Ascess Dbase and they are text fields. An example of the error:

Dropdown Selections: from table OsmcSystemsImpacted
VGS Data Center
Legacy Platform
VGS RVA

What ends up in my Dbase: going to table OsmcLogEntry
VGS
Legacy
VGS

I am not getting anything after the first "Space" So what is happening to the rest of my data?

View Replies View Related

Losing A Session Variable?

Currently there is a web user that always gets an error on our application due to a missing session variable. All other session variables are still in tact, but this one seems to disappear and hence the user can no longer access everything on the site.


Any ideas as to where this value goes? I've checked my ASP code and saw nothing that would re-set this variable's value. Moreover, only a couple of users experience this problem.

View Replies View Related

Vars Passing From One Page Losing There Value?

I guess this is a continuation of my erlier problem which I thought I had solved.
I have several inputs being passed from one page where they are inputed in, to a preview page so the user can chek there info, then it will be passed to a page to submit the info to a data base.

I have a input that is the item description var name of �prodesc�. It pass from the input page to the preview page just fine. Then I use the same method to pass it to the next page to save it to a data base, but when it gets to the submit page the var �prodesc� only has the first word of the description that was shown on the previous page? Any one know why its acting like its been trimmed? Code:

View Replies View Related

Losing Records When Using Response.ContentType Msword.

I have a problem in that i have a page that works fine and shows all records/Output until i add Response.ContentType=msword

And then i only show every other record.

I probably should have coded the page differently. But for context - it's a school report system and i have setup a Subroutine which queries a database and builds a summary report for a girl. I wanted to print out a class list of these. I.e one for each girl in a class and so i loop around the results of one recordset and within each loop make a new query and create the report. This is probably not the best way to do it.

Anyhow, in the browser it woorks fine. As soon as i add the code to output it to word (or excel ) i lose evry other report.

View Replies View Related

Losing Line Breaks When Writing To MySQL Db

i have a MySQL database and i am using ASP

for one of my forms, i have a textarea form element that is...substantially large (500x300px) users are instructed to hit enter/return on their keyboard to separate paragraphs but i have encountered a problem.

in the textarea, everything is wonderful. line breaks are clearly seen...its awesome. when i submit the form and when it writes to the database (the field is set as 'text'), everything is crammed together...there is just one space between where one paragraph ends and another begins.

has anyone encountered this problem before? does anyone know a solution?

View Replies View Related

Difference Between Environment Variables And Server Variables

can anyone tell me difference between environment variables and server variables.

View Replies View Related

Referencing Variables Through Other Variables

I'm not sure how to best describe my problem, so a simple example should help explain things:

I have two arrays, called set1_data and set2_data

if I create a variable like so:

firstPart = "set1"

and then assign like this:

copyOfArray = firstPart & "_data"

how do I make copyOfArray reference the set1_array, as opposed to just a string "set1_array" which is what it's doing?

I've had a good rummage round ye olde Internet but couldn't find anything there must be a keyword or function to achieve this?!?

View Replies View Related

Variables In ASP

I am trying to build a web based database using Access and ASP. I can retreive data form the database in a web page. I can send data from one page to another. However, I am stuck trying to figure out how to make the data variable. I would like the second page to display only data the user selected from a drop down list in the previous web page. I tried using the WHERE function and replace the hard coded information with a variable, but it isn't accepting the code. Could someone please help with this? I have research mulitple sites and can't find this particular piece of code or in tutorials. I must be missing something because seems like it would be basic stuff.

View Replies View Related

Variables

I'm trying to reference a username variable that is saved after the user
logs in. I can reference it using $(Username) in standard html parts of the
page but how do i use it in the script sections enclosed with <% %>

View Replies View Related

Variables

How can I get the value of a variable set in ASP from
inside vbscript tags. Here an exampleCode:

<%
Dim x
x = "something"
%>
<script language=vbscript>
msgbox(x)
</script>

I need to display the variable in a msgbox but can within
ASP.

View Replies View Related

Asp Variables

on the page.asp it searches the database for the specific record with id=3.
now i cant use : variable = Request.Form("id"), because the information does not come from a form, and request.querystring doesn't want to work either.

View Replies View Related

Variables

I am new to asp and have tried a few things and cannot get it to work. I thought this code:

<input type="hidden" name="x_cust_id" value="<%= x_email %>">

would work for making the x_cust_id value equal what was put in the x_email field - but that doesnt work - any idea what Im doing wrong.

View Replies View Related

Variables

I have a webpage with a list of items with checkboxes and a submit button. On the click of the submit button, I call a vbscript that loops through the items and put the values of the checked items in an array or string, and then jump to a new page.

Now I either want to send this variable to the new page, or I want to save the values to a mySQL database table, so I can use the values on the new page.

It seems I can't use session variables (session.contents) for this because that's server-side only.

View Replies View Related

Using Variables

how can we use variables in sql statements

View Replies View Related

ASP.NET To ASP: Variables

Does anyone know how to get a variable to transfer from ASP.NET to an ASP page?

View Replies View Related

Getting Variables By Id

Is there any way to get input boxes by thier id rather than
thier name? (Request.Form("elementname")) I don't want to
have to give every box its own id and name when they are just
going to be the same.

View Replies View Related

Url Variables

I know that it's possible to pass more than one url variable using '&' querying 2 columns in the database.However,I want to pass both the words 'piano' and 'keyboard' to the same column [instruments] in a database).

Here is the code for just 'piano' and this works fine.

Search_quick.asp?<%="search="&"piano"%>

This is processed by a request.querystring("search")

View Replies View Related

Use Variables

I'm building an application that allows visitors to our site to view GPS survey data. The data is collected several times a day and the files written to a different directory each day. Thus, for July, there are 31 folders.

There is a calendar on the site that people can click on the date they want to get the data for. Then, a window will open and the contents of that days directory will be displayed in the window.

Our app is at http://test.c-b.com/CORS/ - the data is supposed to be accessed from the calendar but now all I can do is view the root files. I just can't figure out how to target another directory with the FSO using a variable passed from a querystring.

View Replies View Related

Variables In URL

How do I write variables in the URL like in PHP? Then, How do I pick up variables that are in the URL!

E.g. in PHP = main.php?name=David

Because i've just started in ASP from PHP and I was wondering how you goto a URL with variuables in...! And how ASP gets them from the address URL as it seems not to automatically pick them up.

View Replies View Related

Variables

I need to write a if statment to find a part of a word. By Example:

variable = "ASP Free forums"
if % variables % = "ASP" then
statment
else
exit
end if

I've tryed to uses the '%' like in SQL queries but didnt work. Is there any idea?

View Replies View Related

Variables

I have a number of form fields that I wish to temporarily record into
variables and pass to a small number of subsequent pages.

Is the best way to save each one to a session variable when I submit the
form and then to clear the variables when I no longer need them?

Also, if this is the best method, what is the code for saving a form field
to a session variable when the form has not yet been submitted. For
example, when I submit Form1, I want the contents of Field1 to be entered
into SessionVariable1 and then the form to be submitted as normal.

View Replies View Related







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