Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

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

Posted on 2006-04-06
3
Medium Priority
?
510 Views
Last Modified: 2010-04-07
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!

Regards
Chris
0
Comment
Question by:chrismc
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
mrichmon earned 2000 total points
ID: 16401833
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.
0
 
LVL 18

Author Comment

by:chrismc
ID: 16402315
Thanks.

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!

Cheers
Chris
0
 
LVL 35

Expert Comment

by:mrichmon
ID: 16402383
Always a good thing to expand your skill set to get paid more :o)
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When deciding to adopt any help desk solutions many factors should be explored before taking decisions. This will change from business to another but in general there are some kind of rule of thumb. Here are some quick tips: Do we need only ticket…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to connect a WordPress website to Google Analytics. This will be demonstrated using a Windows 8 PC Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php :…
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question