2016-08-26 9 views
0

ブートストラップアラート機能に関するヘルプが必要です。以下は、アラートをポップアップ表示するためのコードです。asp.net bootstrapデータベースからの警告データ

  <div id="asd" runat="server"> 
      <div class="alert alert-danger" id="success-alert"> 
       <button type="button" class="close" data-dismiss="alert">×</button> 
       <strong> Pending Approval-HR(Please approve now)</strong> <a href="CEO_m.aspx" style="color: red" class="alert-link">Click to redirect</a> 
       </div> 
     </div> 

私は、データベースから取得するだけでなく、url.The合計アラートがポップアップしますアラートテキストは、データベースからの総データに依存しています。

enter image description here

+0

こんにちは、あなたの質問は明確ではありません。あなたが立ち往生した場所? – SilentCoder

+0

ブートストラップでは、いくつかのダイアログをポップアップするために 'modal'クラスを使用します。 – SilentCoder

+0

アラートではなくモーダルを使用する必要がありますか? – KyLim

答えて

0

あなたの質問は非常に明確ではありません。あなたの問題を解決するかもしれないajaxの警告を使用してください

string message = "alert('Hello! Mudassar.')"; 
ScriptManager.RegisterClientScriptBlock((sender as Control), this.GetType(), "alert", message, true); 
0

セッション変数またはラベルを使用し、データベースから値を設定してください。

<div id="asd" runat="server"> 
    <div class="alert alert-danger" id="success-alert"> 
     <button type="button" class="close" data-dismiss="alert">×</button> 
     <strong> Pending Approval-HR(Please approve now)</strong> <a href="CEO_m.aspx" style="color: red" class="alert-link"><asp:Label ID="lbl_text" Text=""/></a> 
    </div> 
</div> 
関連する問題