Not unless you want to do the same in VB.Net, even then it is perhaps better to ask about what to do rather than asking someone here to translate VBscript code.
ASP.Net can use VBscript for client-side code, but it is more common with Javascript, also client-side scripting is more of an exception when ASP.Net can't do it, which again much functionality has been implemented by the recent AJAX framework and isn't coded manually anymore.