Can I close a browser in ASP.Net 2.0 without resorting to any javascript?

I'm using Visual Web Developer Express.
I'm a competent VB6, ADO, ADO.Net & SQL programmer with a healthy dose of HTML, CSS and XML, but finding VB.Net a bit slow to get into.
I'm developing a web app for a customer. I have a pop up window which I want to close if the user presses the cancel button.

I know I can do this using the html/javascript solution of onclick="window.close".

But, as I'm trying to avoid learning yet another language, I'm sure there must be a pure VB.Net way of doing this!

LVL 18
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

No there is not.

.NET is a server side language.  It runs on the server.  You are trying to close a browser, which is part of the client machine.  You have to do that on the client.  Hence you have to use javascript or another client program (i.e. active X).

If you are designeing a web app you should be embracing learning javascript not avoiding it.  Otherwise your apps will always be amatuer and very basic.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
chrismcAuthor Commented:

I have now come to that conclusion too.

I wasn't supposed to be doing any of the web coding anyway - but hey, I'm getting paid for it!

Always a good thing to expand your skill set to get paid more :o)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development Software

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.