HTML form variables lost on post

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • CCP

    #1

    HTML form variables lost on post

    I've got a simple HTML page containing a form and a few hidden
    variables.
    This form post into a .Net application (that lives in a seperate
    directory).

    The first thing I do in my codebehind is grab the values of the form
    fields, however .net is unable to see these values. The entire
    Request.Form object is empty. Request.Form.Co unt == 0. If I turn on
    the tracing/debug output the form itself isn't even listed.

    I am at a lost as to whats happening to my Form collection. If I
    change the action of the form to submit to a ColdFusion page (for
    example), cold fusion receives the post and has the form variables.

    Anyone have any ideas why the post is emtpy?
  • CCP

    #2
    Re: HTML form variables lost on post

    Solved this one.

    In the Web.Config, there is a setting for SessionState cookieless.
    When this was set to "true" our form POSTS coming from a none .net
    HTML page into a .net page were being treated as GETS.

    Enabling cookies to establish our session corrected the situation.
    Anyone have any ideas as to why?



    google@vinelodg e.com (CCP) wrote in message news:<8d7d78c1. 0405051045.2b52 1a11@posting.go ogle.com>...[color=blue]
    > I've got a simple HTML page containing a form and a few hidden
    > variables.
    > This form post into a .Net application (that lives in a seperate
    > directory).
    >
    > The first thing I do in my codebehind is grab the values of the form
    > fields, however .net is unable to see these values. The entire
    > Request.Form object is empty. Request.Form.Co unt == 0. If I turn on
    > the tracing/debug output the form itself isn't even listed.
    >
    > I am at a lost as to whats happening to my Form collection. If I
    > change the action of the form to submit to a ColdFusion page (for
    > example), cold fusion receives the post and has the form variables.
    >
    > Anyone have any ideas why the post is emtpy?[/color]

    Comment

    • John Bailo

      #3
      Re: HTML form variables lost on post


      As I remember the POST and GET HTTP protocols are disabled by default in
      machine.config. You might have to enable them ( search in machine.config
      for POST -- you will see that the protocol is commented out ) because
      Microsoft wants us to use the XML/SOAP specification for things like Web
      Services. HTTP/POST/GET is obsolete.

      CCP wrote:
      [color=blue]
      > Solved this one.
      >
      > In the Web.Config, there is a setting for SessionState cookieless.
      > When this was set to "true" our form POSTS coming from a none .net
      > HTML page into a .net page were being treated as GETS.
      >
      > Enabling cookies to establish our session corrected the situation.
      > Anyone have any ideas as to why?
      >
      >
      >
      > google@vinelodg e.com (CCP) wrote in message
      > news:<8d7d78c1. 0405051045.2b52 1a11@posting.go ogle.com>...[color=green]
      >> I've got a simple HTML page containing a form and a few hidden
      >> variables.
      >> This form post into a .Net application (that lives in a seperate
      >> directory).
      >>
      >> The first thing I do in my codebehind is grab the values of the form
      >> fields, however .net is unable to see these values. The entire
      >> Request.Form object is empty. Request.Form.Co unt == 0. If I turn on
      >> the tracing/debug output the form itself isn't even listed.
      >>
      >> I am at a lost as to whats happening to my Form collection. If I
      >> change the action of the form to submit to a ColdFusion page (for
      >> example), cold fusion receives the post and has the form variables.
      >>
      >> Anyone have any ideas why the post is emtpy?[/color][/color]


      --
      W '04 <:> Open

      Comment

      Working...