use RegisterStartupScript()for registeringJavascript in your Programme and then you can useit.Just see help of VS.NET for an example.