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
Post a Comment