2014-10-20 17 views
0

다음 내 모달 폼부트 스트랩 모달 폼은

<div id="editModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="editModalLabel" aria-hidden="true"> 
    <div class="modal-header"> 
     <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> 
     <h3 id="editModalLabel">Detailed View</h3> 
    </div> 
    <div class="modal-body"> 
     <asp:UpdatePanel ID="UpdatePanel2" runat="server"> 
      <ContentTemplate> 
       <table class="table"> 
        <tr> 
         <td>Role Name : 
         <asp:Label ID="lblRoleName" runat="server"></asp:Label> 
         </td> 
        </tr> 
        <tr> 
       </table> 
      </ContentTemplate> 
     </asp:UpdatePanel> 
    </div> 
    <div class="modal-footer"> 
     <asp:Button ID="Button1" runat="server" Text="Button" /> 
    </div> 
</div> 

내가이 문제는이 표시되지 않습니다이다

System.Text.StringBuilder sb = new System.Text.StringBuilder(); 
sb.Append(@"<script type='text/javascript'>"); 
sb.Append("$('#editModal').modal('show');"); 
sb.Append(@"</script>"); 
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "EditModalScript", sb.ToString(), false); 

를 클릭하여 아래의 버튼처럼 전화 드렸습니다 내용을 표시하지 않습니다 모달 형식의 내용 그러나 버튼을 클릭하면 빈 폼이로드됩니다.

답변

1

변경됨 class="modal hide fade" to class="modal fade"