473,406 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

passing variable from asp.net to asp

12
Desperately need help....

here's the snippet of my code that im trying to solve since last week...

icePayment.aspx
Expand|Select|Wrap|Line Numbers
  1. If (Left(Request.Form("return_url"), 7) <> "http://") Then 
  2.  
  3.   errorInput = errorInput & "Invalid return URL path! <BR>" 
  4.   errorExist = True 
  5.   Response.Redirect("InvalidUrlError.aspx")
  6. Else 
  7.   Session( "res") = "1" 
  8.   TextBox2.Text = Session(Response.Redirect(Request.Form("res")"retu rn_url"))
  9.  
payResult.asp
Expand|Select|Wrap|Line Numbers
  1. <% if ( Request.QueryString(Session("res") ) = "1") then %>
  2.   Thanks!
  3. <% else %>
  4.   sorry
  5. <% end if %>

However,it could not be captured in payResult.asp

Ive tried using Request.form(Session("res"), Session("res") in payResult.asp but still it doesnt work...
Oct 13 '09 #1

✓ answered by Frinavale

You can't use session for passing data from an ASP.NET application to Classic ASP pages.

You have you use some other technique, like using the query string instead.

-Frinny

1 1348
Frinavale
9,735 Expert Mod 8TB
You can't use session for passing data from an ASP.NET application to Classic ASP pages.

You have you use some other technique, like using the query string instead.

-Frinny
Oct 14 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Ko Ko | last post by:
Dear All, I am wondering how to pass one variable from one php file to another continuously or discontinuously. For example, variable $a is declared in file1.php. I like to use that variable in...
7
by: Dave A | last post by:
I have two events in a form that I am passing. One is to a javascript function, the other is to the same .asp page only with another action to show different data. Onchange is calls the...
9
by: Max | last post by:
I'm new with Javascript and can't seem to figure out what I'm doing wrong here as I'm not able to pass a simple variable to a function. In the head of doc I have: <script...
10
by: Geoff Cox | last post by:
Hello, I have written before that I can pass a variable from page 1 to page 2 if I call the variable "name". Stephen Chalmers has written, >'name' is effectively a reserved word as the...
3
by: junk | last post by:
Hi, Given the following function:- void foo (char *fmt, ...) { } I know how to use va_start, va_end etc to process the parameters but is there an easy way of passing the parameter list...
3
by: David Bacon | last post by:
Hi All, I am new to C#, and am having trouble passing the value of a variable from one windows form to another. Can anyone point me in the right direction. Any help here would be greatly...
5
by: Paul | last post by:
Just wondering if someone could provide an example of passing a variable from the code behind to javascript in vb. I want to have one control have focus with the page loading with one condition...
1
by: thomasp | last post by:
In the code below I have a function that tests if a file exists. It takes a variable named strFileName, simple enough. My question is, is there a way to pass it a variable with another name as...
1
by: markclinn | last post by:
I need help with passing a variable from embedded WebBrowser to VB application. I have an interactive map, and when I click on an icon, I need to pass the ID back into the application. Any ideas? ...
2
by: sunnypirate | last post by:
The following code treats abcd as a variable and gives the error variable undefined in firebug return $data = "<a href='#' onclick='ajaxcall(abcd);'>".$name."</a>"; The following code gives the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.