Can set the div content with jquery
<p>Why can't I put dynamic text on a div called foo? The following is on a metho in the asp.net codebehind.</p>

<pre><code>StringBuilder script = new StringBuilder();
        script.Append("&lt;script type='text/javascript'&gt;");
        script.Append("                                $(document).ready(function () {");
        script.Append("                                    $('&lt;div id=foo&gt;&lt;/div&gt;').appendTo('body');");
        script.Append("                                    var dlg = $('#foo');");
        script.Append("                                    dlg.dialog({");
        script.Append("                                         autoOpen: true,");
        script.Append("                                         resizable: false,");
        script.Append("                                         draggable: false,");
        script.Append("                                         modal: true,");
        script.Append("                                         title: 'Información',");
        script.Append("                                         width: 400,");
        script.Append("                                         height: 200,");
        script.Append("                                         buttons: {");
        script.Append("                                            'Cerrar': function () {");
        script.Append("                                            $(this).dialog('close');");
        script.Append("                                         }");
        script.Append("                                       }");
        script.Append("                                   });");
        script.Append("     $('#foo').html(&lt;p&gt;"+info+"&lt;/p&gt;);");
        script.Append("                                });");

        script.Append("&lt;/script&gt;");

        ClientScript.RegisterStartupScript(this.GetType(), "launchModalWindow", script.ToString());
</code></pre>

<p>The problem is in this line:</p>

<pre><code>script.Append("     $('#foo').html(&lt;p&gt;"+info+"&lt;/p&gt;);");
</code></pre>
