473,394 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Usercontrol in IE showing warning message. How to avoid this?

I've created a usercontrol which is hosted in Internet Explorer. It
with some action buttons. I could place all buttons on this
usercontrol but I did not. When the user presses one of the buttons i
detect some more action needs to be taken and open a dialogbox. using
ShowDialog. But IE finds a usercontrol opening a dialogbox dangerous
(Although the usercontrol could alsready have done anything because i
have elevated its permissions using a strongname and such.)

It changes the dialog icon to include a little exclamation mark and
shows a balloon tooltip on this new icon stating:
'Never enter personal information or paswords into a window unless you
can verify and thrust the source of the request. Souce: localhost'

This is anoying, because it keeps on coming everytime over and over
and the user has no possibility (it seems) to make this balloon not
popping up again and again.

Can this dialog be avoided by asserting one of the permissionsets? I
do not find one.

Feb 1 '06 #1
2 1725
I suspect the message you are seeing is because the control isn't signed.
You may want to get a software publishers certificate from VeriSign and sign
the control.

Brian Patterson
http://dotnet.redeyepos.com
http://brian.redeyepos.com

<mv*********@nospam.nospam> wrote in message
news:a2********************************@4ax.com...
I've created a usercontrol which is hosted in Internet Explorer. It
with some action buttons. I could place all buttons on this
usercontrol but I did not. When the user presses one of the buttons i
detect some more action needs to be taken and open a dialogbox. using
ShowDialog. But IE finds a usercontrol opening a dialogbox dangerous
(Although the usercontrol could alsready have done anything because i
have elevated its permissions using a strongname and such.)

It changes the dialog icon to include a little exclamation mark and
shows a balloon tooltip on this new icon stating:
'Never enter personal information or paswords into a window unless you
can verify and thrust the source of the request. Souce: localhost'

This is anoying, because it keeps on coming everytime over and over
and the user has no possibility (it seems) to make this balloon not
popping up again and again.

Can this dialog be avoided by asserting one of the permissionsets? I
do not find one.

Feb 2 '06 #2
On Wed, 1 Feb 2006 21:57:33 -0600, "Brian Patterson"
<br***********@redeyepos.comSPAM___N_O> wrote:
I suspect the message you are seeing is because the control isn't signed.
You may want to get a software publishers certificate from VeriSign and sign
the control.


Sorry but that was not the case. I found it out with the help of
Patrice:

More specifically I believe you are in SafeTopLevel Window mode :
http://msdn.microsoft.com/library/de...classtopic.asp

Excerpt :

These special windows, for use by partially-trusted code, are
guaranteed to be clearly labeled and have minimum and maximum size
restrictions. These restrictions help prevent potentially harmful code
from spoofing attacks, such as imitating trusted system dialogs.
....

I needed the UIPermission class in my control to request the right
level of UIPermissionWindow (AllWindows or SafeTopLevelWindows).

Marc
Feb 2 '06 #3

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

Similar topics

6
by: Eric Boutin | last post by:
Hi ! currently programming something that heavily use std::vector<std::string> and std::map<std::string, std::string> . When compiling my program I have like 1015 warnings : warning, debug info...
0
by: chris | last post by:
Hi there I want to create a UserControl which simply uses a textbox and a calendar. The calendar's visibility is set to false. If I click the ImageButton the Calendar is visible. When you select a...
3
by: Tony Maresca | last post by:
Hi. I have a class derived from a UserControl, that I want to allow others to derive controls from. I don't want them to design the base class (which is derived from a UserControl). I know that...
3
by: sotto | last post by:
Hi, how can i make a usercontrol that inherits from the system.windows.forms.button instead of the forms.usercontrol ? I want to add a fiew features to my button and still be able to drag it...
1
by: Will Gillen | last post by:
I know this has probably been asked before, but I can't seem to find a solid answer in any of the archives. First, before my question, please forgive my limited knowledge of the event lifecycle...
3
by: jesper_lofgren | last post by:
Hi, I have two usercontrols one menu control that use ASP.NET 2.0 Treeview control, then a main usercontrol for showing the selected URL in a Iframe. The problem is when i raise the...
4
by: johnb41 | last post by:
I created a UserControl (basically containing a datagridview for showing some data). I need this UserControl to be visible on 2 forms at the same time. Here's a stripped down version of some...
0
by: Arpan | last post by:
I have created the following UserControl (the file is named LoginForm.ascx): <script language=VB runat="server"> Public UName As String Public UPwd As String Public BColor As String Public...
3
by: Jeff | last post by:
Hey ASP.NET 2.0 This the ObjectDataSource in my UserControl, <asp:ObjectDataSource ID="odsMessage" runat="server" SelectMethod="ExecuteMessage" TypeName="AH.MyNetwork.BLL.Network.Message">...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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...

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.