title: javascript alert not working
body: <p>I have this code and I am trying to run it on a .NET platform but it is not working. Does anyone have any idea what is wrong with my code? Thanks. I am using visual studio 2010, and c# programming language.</p>
  
  <pre><code>private void AlertWithConfirmation()
              {
                  Response.Write("&lt;script language='javascript'&gt;");
                  Response.Write("var x=window.confirm(\"Are you sure you are ok?\")");
                  Response.Write("if (x)");
                  Response.Write("window.alert(\"Good!\")");
                  Response.Write("else");
                  Response.Write("window.alert(\"Too bad\")");
                  Response.Write("&lt;/script&gt;");
              }
  </code></pre>