Connecting Tech Pros Worldwide Help | Site Map

passing variable from asp.net to asp

Newbie
 
Join Date: Oct 2009
Posts: 12
#1: Oct 13 '09
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...
best answer - posted 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
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,066
#2: Oct 14 '09

re: passing variable from asp.net to asp


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
Reply