You can't do this with ASP.NET or with C#. You need to do it in javascript. You should perhaps read a basic ASP.NET book, to understand how the whole process works. ASP.NET generates pages which are then served and run in the browser.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.