Disabled Controls are not submitted asp.net 2.0

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

    Disabled Controls are not submitted asp.net 2.0

    Hi

    i have following problem

    1) I add checkbox controls dynamically to webpage

    2) user has time limit to check those boxes

    3) if time is over checkboxes are disabled and Submit button appears

    4) User presse submit button - problem disabled controls are not submitted!


    Im using Page.Form.Submi tDisabledContro ls = true and form has also
    SubmitDisabledC ontrols=True


    Any suggestions?


    Meelis



  • =?Utf-8?B?YnJ1Y2UgYmFya2Vy?=

    #2
    RE: Disabled Controls are not submitted asp.net 2.0

    this is a feature of the browser. no disabled fields are posted back. you can
    have client script copy the values to hidden fields that do postback.

    -- bruce (sqlwork.com)


    "Meels Lilbok" wrote:
    Hi
    >
    i have following problem
    >
    1) I add checkbox controls dynamically to webpage
    >
    2) user has time limit to check those boxes
    >
    3) if time is over checkboxes are disabled and Submit button appears
    >
    4) User presse submit button - problem disabled controls are not submitted!
    >
    >
    Im using Page.Form.Submi tDisabledContro ls = true and form has also
    SubmitDisabledC ontrols=True
    >
    >
    Any suggestions?
    >
    >
    Meelis
    >
    >
    >

    Comment

    • Patrice

      #3
      Re: Disabled Controls are not submitted asp.net 2.0

      I would have a look at how it works client side. Actually I didn't even know
      it was possible as usually a browser doesn't submit disabled fields by
      design so there is likely a workaround (such as perhaps creating hidden
      fields for those values ?).

      Are you sure you create those controls at the approprioate step including
      recreating them when appropriate ? My first thought would be that the way
      those controls are created defeats the workaround provided by ASP.NET. I'll
      have to give this a closer look as I didn't even noticed ASP.NET included a
      workaround for this...

      --
      Patrice

      "Meels Lilbok" <meelis.lilbok@ deltmar.eea écrit dans le message de news:
      3F84ACA5-E689-4F5A-8ECA-8EB4652A35F4@mi crosoft.com...
      Hi
      >
      i have following problem
      >
      1) I add checkbox controls dynamically to webpage
      >
      2) user has time limit to check those boxes
      >
      3) if time is over checkboxes are disabled and Submit button appears
      >
      4) User presse submit button - problem disabled controls are not
      submitted!
      >
      >
      Im using Page.Form.Submi tDisabledContro ls = true and form has also
      SubmitDisabledC ontrols=True
      >
      >
      Any suggestions?
      >
      >
      Meelis
      >
      >
      >

      Comment

      Working...