c# - how to display table formatted data in java script popup -


hi how display table formatted data in java script popup. possible display table formatted data in java script popup. in asp.net using c# language.

you cannot display formatted tables in regular js alert box. alert function opens os\ web browser indignant window dose not display html.

you alternative use available modal dialog js plugin allow create similar.

here example using jquery's modal dialog table: js fiddle example

html:

<div id="dialog" title="basic dialog">   <p>this default dialog useful displaying information. dialog window can moved, resized , closed 'x' icon.</p>     <table border="1">         <tr><td>hello</td><td>hello</td><td>hello</td></tr>         <tr><td>hello</td><td>hello</td><td>hello</td></tr>         <tr><td>hello</td><td>hello</td><td>hello</td></tr>         <tr><td>hello</td><td>hello</td><td>hello</td></tr>         <tr><td>hello</td><td>hello</td><td>hello</td></tr>     </table> </div> 

js:

 $(function() {     $( "#dialog" ).dialog();   }); 

Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -