473,790 Members | 2,481 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB.NET -Web App: How to disable browser close button

1 New Member
is it possible to diseble the close button in pop up?what is the code in asp.net using vb
Nov 19 '07 #1
3 2612
shweta123
692 Recognized Expert Contributor
Hi,

One way to disable the button at the time when your popup window is shown ,
is to make it disable on the page itself.

e.g If it is Asp .Net button then make it disable like this

<Asp:Button Id="Button1" Enabled= "False">

is it possible to diseble the close button in pop up?what is the code in asp.net using vb
Nov 20 '07 #2
Frinavale
9,735 Recognized Expert Moderator Expert
is it possible to diseble the close button in pop up?what is the code in asp.net using vb
I saw your post the other day and went searching for an answer for you...when I came back I couldn't find it again!

I don't think it's possible to disable the close button in a browser...
However, there is a way to set the properties of the pop up window when you call the Window.Open Method. The best resource for this type of thing is w3c.org: see here for information on the Html Dom Open() Method. You'll find a whole bunch of different settings that can set to hide or show things as wish.

I hope this helps

-Frinny
Nov 20 '07 #3
Frinavale
9,735 Recognized Expert Moderator Expert
I know why I couldn't find your post when I came back. You named the title of your thread "search". That is not very descriptive and does not reflect the problem that you are facing. I am changing your title so that it is more meaningful. Could you please use a better title in your future posts. Please review the posting guidelines, specifically the section on Use a good thread title for more information on why this is important.

Thanks
Nov 20 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
6135
by: Saurabh Sharma | last post by:
Hi How do i disable windows close button in forms in C# Regards Saurabh
13
22735
by: lightzizo | last post by:
All, How can I disable or remove the close button in the screen. thanks
1
1984
by: Kikita | last post by:
Hi! I am working on a Internet Exam form that requires the students to finish their tests before closing the window, if closed by accident, the points they get will be added to the ones they will get by opening a new window. I need to make sure they can't close the window, not even by accident. Please help, it's urgent!! Thanx.
0
1126
by: danasegarane | last post by:
Dear All, I am using VBA to develop programms.How can i disable the word X button ? Dana
1
1683
by: jamesdel | last post by:
Hi I know how to disable the close button of the main access window. But i am not able to disable the maximum button. Can anyone help me in this regard. It certainly needs API function calling procedure. So anybody who is good in API can help me. I have disable the close button through this. But when i am trying to disable the maximum button using this same technique i am not getting the correct result. John
1
1302
by: gopim | last post by:
how to disable browser back button after clickng signout button
3
1216
by: vingomail | last post by:
How to disable our browser back button? help me please
1
11375
by: sreedhardasi | last post by:
Hi, I would like to call a javascript function when user clicks on browser's close button. Here is the scenario. 1. User clicks browser close button. 2. User will be displayed a popup or a div with two buttons (Yes or No) by calling a Javascript function 3. "No" will close the window. 4. "Yes" will cancel the user action and redirect him/her to different
3
2136
swarnalaxmi
by: swarnalaxmi | last post by:
In .net i created a datagridview to display a table... there i have to disable the close button. i searched in properties. i couldnot find. can you help? thanks in advance swarnalaxmi
0
9666
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
10413
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
10200
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...
0
9986
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
9021
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7530
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6769
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
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.