ScriptManager.RegisterClientScriptBlock(this, typeof(Page), "NoInformation", "alert('" + str + "');", true);

Response.Write("<script>alert('"+ str +"')</script>");

相关文章: