473,785 Members | 2,235 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web Browser App Interface

ae
Does anybody know how to properly close the form, on a browser, and then exit
out of the browser?

I looked at MSDN and found nothing there.
Nov 18 '05 #1
2 1319
Hi,

Could you give some more information, I'm not sure what you are looking for.
If this is an ASP.Net app, then you can only close windows your app opens.
Your not allowed to close the browser window that the user opened to visit
your site. Also there isn't any way to "close" a form in a web page. Do
you want to submit the form? You can do that with a <asp:Button> server
control. To show the user they have exited the app you could then redirect
them to a page that lets them know they've finished the task.
Response.Redire ct("Finish.aspx ").

Or are you running a Windows Form app through a browser? Even with that I'm
pretty sure you can't close the browser itself, but I could be wrong on that
one. Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight

"ae" <ae@discussions .microsoft.com> wrote in message
news:8F******** *************** ***********@mic rosoft.com...
Does anybody know how to properly close the form, on a browser, and then exit out of the browser?

I looked at MSDN and found nothing there.

Nov 18 '05 #2
You will have to do this in client side script (JavaScript). You cannot close
browser window from server script.

window.close();

"ae" wrote:
Does anybody know how to properly close the form, on a browser, and then exit
out of the browser?

I looked at MSDN and found nothing there.

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
57398
by: gokul | last post by:
Hi, Iam a newbie to dotnet and I experience problems in using the Browser control in VB .net. Though Iam able to use it with its basic features, I need to customise it. http://www.codeproject.com/books/0764549146_8.asp The above link shows where what I want is achived in C#, but I need t oa cjhive the same in VB .net. Someone help and guidance would be much appreciated.
2
2292
by: JohnFol | last post by:
I am trying to make use of BHO's (and no not to write spyware). It seems all articles relate to C++, whereas my background si in VB.Net I've managed to understand that I need the following i/face defined <ComVisible(True), InterfaceType(ComInterfaceType.InterfaceIsIUnknown), Guid("FC4801A3-2BA9-11CF-A229-00AA003D7352")> _ Public Interface IObjectWithSite Sub SetSite(<MarshalAs(UnmanagedType.IUnknown)> ByVal pUnkSite As Object)
2
3158
by: Thomas Storm | last post by:
Is there a method in JavaScript that will detect and return the coordinates of a mouse click? For example, if someone clicked the mouse within the browser window, the method would return (453,125), or something similar. I guess another way to ask this would be, is there a way to image map the entire browser display as a whole? -- Thomas J. Storm
12
10176
by: Kepler | last post by:
How do you get the height of the client browser in IE? Both document.body.clientHeight and document.body.offsetHeight return the height of the document. If the page is long and there's a vertical scrollbar, you get the height of the entire document, screwing up any chance of centering a window in the browser using these values. Is there a way to get the height of the actual browser window and not the entire page height? Thanks.
4
6387
by: John Bowman | last post by:
Hi, How can I disable the right click capability of the Web Browser control that's on a form? I only want it to display the HTML, w/ no popup menu. TIA, -- John C. Bowman
8
5736
by: Joe Johnston | last post by:
I need a Browser Helper object written in VB.NET Please point me at a good example. Joe MCPx3 ~ Hoping this MSDN ng three day turnaround is true. Additional info: What is a BHO? In its simplest form, a BHO is a COM in-
7
6205
by: Robert | last post by:
Can I programmatically disable the right click context menu?
16
9458
by: Alex Clark | last post by:
Hi All, I'm sure this must have been asked a million times due to it's usefulness, but are there any sensible solutions for disabling right click (and other services such as Ctrl+P, Browser hotkeys etc) on a Web-Browser control in VB.NET? Despite Googling for ideas on and off for a week now, I only found one solution and this was to implement IMessageFilter on the form and then trap all the incoming messages. Unfortunately, this...
11
3317
osward
by: osward | last post by:
Hello everyone, My site needs to support 3 different languages that runs under phpnuke 8.0, phpnuke provides language interface select function that allows switching from different interface, namely using different language files. Every time when user is inside a module, when they click the language interface selection, it send the user back to the index page. I had found out a typical browser address to switch from language would read :...
4
4870
by: Zoubidoo | last post by:
Many applications require a high-speed interface such as supermarket checkouts, busy points of sale, doctors' surgeries etc. The problem with graphical interfaces is that they are too slow for this kind of environment. Imagine a web interface at the supermarket checkout - just not viable. Would it be possible to build a text-based interface *within* a normal browser window - like curses? Keypresses would be interpreted by javascript...
0
9646
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10350
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10157
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10097
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9957
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6742
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5518
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4055
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3658
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.