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. General Programming
  3. C#
  4. Http post [modified]

Http post [modified]

Scheduled Pinned Locked Moved C#
csharphtmlasp-netsalesquestion
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.
  • K Offline
    K Offline
    kibromg
    wrote on last edited by
    #1

    Hi all, I am trying to get the following input data using http post .

      i have my asp.net Page reading the data as : if (Request.QueryString\["customer\_fname"\] != null) fname = Request.QueryString\["customer\_fname"\]; the value of fname is test.However,Its alwyas having a null string. IS it not getting the http post for the above html? Can any one advice Please? Thank you in advance
    

    modified on Tuesday, June 23, 2009 7:10 PM

    G 1 Reply Last reply
    0
    • K kibromg

      Hi all, I am trying to get the following input data using http post .

        i have my asp.net Page reading the data as : if (Request.QueryString\["customer\_fname"\] != null) fname = Request.QueryString\["customer\_fname"\]; the value of fname is test.However,Its alwyas having a null string. IS it not getting the http post for the above html? Can any one advice Please? Thank you in advance
      

      modified on Tuesday, June 23, 2009 7:10 PM

      G Offline
      G Offline
      Gary Stafford
      wrote on last edited by
      #2

      Hidden field, use Request.Form instead:

      string fname = "";
      if (Request.Form["customer_fname"] != null)
      { fname = Request.Form["customer_fname"]; }
      Response.Write("fname value: " + fname);

      Regards, Gary

      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