1 StringBuilder sb = new StringBuilder();
2 sb.Append("<script language=javascript>");
3 sb.Append("alert(document.forms.length);");
4 sb.Append("</script>");
5
6 Response.Write(sb.ToString());
7 ClientScript.RegisterStartupScript(this.GetType(), "test", sb.ToString());