You must Sign In to post a response.
  • Category: JQuery

    How to main values after page post

    Hi

    I am using multiple jquery select control in my asp.net page, when i select multiple option then click submit button my multiple options cleared so how to maintain this?

    any one guide me
  • #769628
    Hello,

    You can use hidden field or view state to maintain value of your control.

    Regards,
    Nirav Lalan
    DNS Gold Member
    "Failure is the path of least persistence"

  • #769652
    When you use any client side control and trying to click on submit button definitely values get clear after reloading. so, i'm suggesting dont use submit button instead of use HTML button and invoke server side methods using AJAX or WEB API's .

    But still if you want go with existing flow, then you have to keep the selected options on change event into hidden variable and same you get on to page using serverside variable inclusion and once the page gets loaded after submit then you need to reassign values back.

    Hope this clears your doubt.

    Thanks!
    B.Ramana Reddy


  • Sign In to post your comments