passing variable from asp.net to asp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ryna
    New Member
    • Oct 2009
    • 12

    passing variable from asp.net to asp

    Desperately need help....

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

    icePayment.aspx
    Code:
    If (Left(Request.Form("return_url"), 7) <> "http://") Then 
    
      errorInput = errorInput & "Invalid return URL path! <BR>" 
      errorExist = True 
      Response.Redirect("InvalidUrlError.aspx")
    Else 
      Session( "res") = "1" 
      TextBox2.Text = Session(Response.Redirect(Request.Form("res")"retu rn_url"))
    payResult.asp
    Code:
    <% if ( Request.QueryString(Session("res") ) = "1") then %>
      Thanks!
    <% else %>
      sorry
    <% end if %>

    However,it could not be captured in payResult.asp

    Ive tried using Request.form(Se ssion("res"), Session("res") in payResult.asp but still it doesnt work...
    Last edited by Frinavale; Oct 14 '09, 01:21 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    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

    Comment

    Working...