Force PostBack

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Byron Hopp [MCS]

    #1

    Force PostBack

    How do you force a postback, we have a button to save our users entry, but
    the button does not have a postback property (like the dropdownlistbox ). Is
    there a way to force a postback?

    Byron...


  • Eliyahu Goldin

    #2
    Re: Force PostBack

    Byron,

    A javascript call myForm.submit() will initiate a postback.

    Eliyahu

    "Byron Hopp [MCS]" <bhopp@matrixco mputer.com> wrote in message
    news:%23ai4g9Xv FHA.3124@TK2MSF TNGP12.phx.gbl. ..[color=blue]
    > How do you force a postback, we have a button to save our users entry, but
    > the button does not have a postback property (like the dropdownlistbox ).[/color]
    Is[color=blue]
    > there a way to force a postback?
    >
    > Byron...
    >
    >[/color]


    Comment

    • Rick Strahl [MVP]

      #3
      Re: Force PostBack

      Hi Byron,

      Can't you just use a Server Button control? If you do there's nothing else
      required.

      If you need to trigger a manual postback for a page use __DoPostBack() -
      check how this works with an AutoPostBack checkbox or textbox, then copy the
      code. Make sure that you call the RegisterPostBac kScript method(sorry forget
      exact name of the method look it up) to make sure the postback script is in
      the page.

      +++ Rick ---

      --

      Rick Strahl
      West Wind Technologies
      Home of Rick Strahl's company site. Find products, tools and development service, read our development blogs and white papers about Web and Service development on the Microsoft and open Web stack.





      "Byron Hopp [MCS]" <bhopp@matrixco mputer.com> wrote in message
      news:%23ai4g9Xv FHA.3124@TK2MSF TNGP12.phx.gbl. ..[color=blue]
      > How do you force a postback, we have a button to save our users entry, but
      > the button does not have a postback property (like the dropdownlistbox ).
      > Is there a way to force a postback?
      >
      > Byron...
      >[/color]


      Comment

      Working...