Open Bootstrap Modal from code-behind

后端 未结 7 2094
梦谈多话
梦谈多话 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:01

    This method of opening the Modal would not display the Modal for me. I found this as a work arround.

    I removed:

     ScriptManager.RegisterStartupScript(this,this.GetType(),"Pop", "openModal();", true);
    

    Than I added an asp:label named lblJavaScript and in code behind call:

    lblJavaScript.Text = "";
    

    Now the Modal will display.

提交回复
热议问题