Open Bootstrap Modal from code-behind

后端 未结 7 2081
梦谈多话
梦谈多话 2020-12-13 18:18

Anyone knows how to open a twitter bootstrap modal, from code behind?

I want to open the modal based on some requeriment at the moment of the save. Something like \"

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-13 19:06

    How about doing it like this:

    1) show popup with form

    2) submit form using AJAX

    3) in AJAX server side code, render response that will either:

    • show popup with form with validations or just a message
    • close the popup (and maybe redirect you to new page)

提交回复
热议问题