locked
Partial Page Refresh and turn off page validation RRS feed

  • Question

  • User-1798917180 posted

    We have ASP.NET page which has textbox contol to get check number. On textbox blur event, we are doing partial page refresh by going to server side and getting data. We have server side validation functions for other controls. These are getting triggered and my partial page refresh is erroring. How can I turn off this other control's server side validation functions from being triggered during partial page refresh.

    Thank You

    Monday, June 3, 2019 4:49 PM

Answers

  • User1724605321 posted

    Hi Spunny ,

    You can use ajax to call sever side function and return partial view content to client side , in success callback function of ajax load the partial view content to related area(div) on the page . So that other server side function won't triggered.

    Best Regards,

    Nan Yu

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, June 4, 2019 4:24 AM

All replies

  • User475983607 posted

    It's very tough to answer questions without the code that causes the issue. I assume you need to rethink the design related to the text blur event.

    Monday, June 3, 2019 6:47 PM
  • User1724605321 posted

    Hi Spunny ,

    You can use ajax to call sever side function and return partial view content to client side , in success callback function of ajax load the partial view content to related area(div) on the page . So that other server side function won't triggered.

    Best Regards,

    Nan Yu

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, June 4, 2019 4:24 AM