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. post data programatically

post data programatically

Scheduled Pinned Locked Moved ASP.NET
csharphelpquestion
2 Posts 1 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
    subai
    wrote on last edited by
    #1

    hi everybody and merry xmas I am developing a C# library that should send(POST) some data to special page and at the same time redirect to it. i tried to get httpcontext from caller page and initialized the request.Form with my data and then using response.redirect redirected to page but an error message tell me that request.Form is readOnly and can not be assigned. do anybody know how i can POST data and redirect in my Library(NOT Aspx page) ?

    I Wish the Life Had CTRL-Z

    S 1 Reply Last reply
    0
    • S subai

      hi everybody and merry xmas I am developing a C# library that should send(POST) some data to special page and at the same time redirect to it. i tried to get httpcontext from caller page and initialized the request.Form with my data and then using response.redirect redirected to page but an error message tell me that request.Form is readOnly and can not be assigned. do anybody know how i can POST data and redirect in my Library(NOT Aspx page) ?

      I Wish the Life Had CTRL-Z

      S Offline
      S Offline
      subai
      wrote on last edited by
      #2

      i solved the problem by creating a method that return a proper auto submit FORM with hidden fields containing my data then response.write the result into empty page it's not good but just works

      I Wish the Life Had CTRL-Z

      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