Literal li = new Literal();
li.Text = "alert('hello');";
Page.Controls.Add(li);
------------------------------------
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "", jsfunction(), true);
Page.RegisterStartupScript("new","<script>alert('this is alert');</script>");
Page.ClientScript.RegisterStartupScript(this.GetType(), "", "alert('hai');", true);
Page.ClientScript.RegisterStartupScript(this.GetType(), "", jsfunction();, true);
Page.RegisterClientScriptBlock("a", "<script>jsfunction();</script>");
ScriptManager.RegisterClientScriptBlock(UpdatedatePanel1, this.GetType(), "Message", "Status(true);", true);
ScriptManager
.RegisterStartupScript(Page, Page.GetType(), Guid.NewGuid().ToString(), "$('#bd').attr('className', 'capse');", true);
Button.Attributes.Add("onclick", "return fnGet()");
for !ispostback:..
ClientScriptManager scm = this.ClientScript;
scm.RegisterStartupScript(this.GetType(), "onload", " __doPostBack('form1',null);setInterval(fncheck,10000);", true);
-------------------------------------
Response.Write("<script language="javascript">window.close();</script>");
Response.End();