Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. strange problem In redirection?

strange problem In redirection?

Scheduled Pinned Locked Moved ASP.NET
comhelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SherKar
    wrote on last edited by
    #1

    i am working on e-payment site and i use string concatination method to send the complete url with the products StrRedirect="https://www2.2checkout.com/2co/buyer/purchase?sid=215387"; if(CheckBox1.Checked) { //StrRedirect=StrRedirect+"&total=35&cart_order_id=12587529"; string Str="&product_id=5&quantity=1"; StrRedirect=StrRedirect+Str; } if(CheckBox2.Checked) { string Str="&product_id=4&quantity=1"; StrRedirect=StrRedirect+Str; } Response.Redirect(StrRedirect,true); but this code send the url but not as i concatinated it it sends it the product ids first then the quantity wich are not applicable to site i send it the url what happened to the url and how it can be solved thanx in advance

    S 1 Reply Last reply
    0
    • S SherKar

      i am working on e-payment site and i use string concatination method to send the complete url with the products StrRedirect="https://www2.2checkout.com/2co/buyer/purchase?sid=215387"; if(CheckBox1.Checked) { //StrRedirect=StrRedirect+"&total=35&cart_order_id=12587529"; string Str="&product_id=5&quantity=1"; StrRedirect=StrRedirect+Str; } if(CheckBox2.Checked) { string Str="&product_id=4&quantity=1"; StrRedirect=StrRedirect+Str; } Response.Redirect(StrRedirect,true); but this code send the url but not as i concatinated it it sends it the product ids first then the quantity wich are not applicable to site i send it the url what happened to the url and how it can be solved thanx in advance

      S Offline
      S Offline
      Syed Abdul Khader
      wrote on last edited by
      #2

      I dont know why but you can try like this string Str="&product_id=5"; StrRedirect=StrRedirect+Str; Str="&quantity=1"; StrRedirect=StrRedirect+Str;

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups