you need to use javascript, even if you output javascript with C#, seehttp://www.dotnetjohn.com/articles/articleid12.aspx