473,554 Members | 5,383 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1741
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*********@no spam.nospam> wrote in message
news:a2******** *************** *********@4ax.c om...
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.comSP AM___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 UIPermissionWin dow (AllWindows or SafeTopLevelWin dows).

Marc
Feb 2 '06 #3

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

Similar topics

6
2327
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 truncated to 255 character (because of the decoration, template and namespace stuffs). It's getting annoying.. it's longer to output the warning...
0
1171
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 date, the date is written into the textbox. But when I just want to change the Month the calendar disappears. (When you reopen the calendar is a...
3
1683
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 I can prevent the control from being designed by making it not the first class in the code file, but is there another more 'official' way to do...
3
2337
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 on to the form with the ide i got working code, just a class that inherits from system.windows.forms.button but then i need to do all the design...
1
6839
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 and page loading/rendering lifecycle.... Ok, now for the question: I have an ASPX page (page.aspx), and I have a UserControl (control.ascx). The...
3
2398
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 OnSelectedNodeChanged on the menu and add the URL value into a session or Viewstate key and collect the value on the second (main usercontrol) the value is...
4
1183
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 code: Dim Myusercontrol as UserControlDataGrid Myusercontrol = New UserControlDataGrid Dim myForm1 as new Form1
0
1132
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 Sub btnSubmit(ByVal obj As Object, ByVal ea As EventArgs) lblMessage.Text = "UserName : " & uid.Text & "<br>Password : "
3
3027
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"> <SelectParameters> <asp:ProfileParameter Name="user" PropertyName="UserName"
0
7503
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7781
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. ...
1
7538
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...
0
7869
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...
0
5140
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...
0
3543
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3531
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2003
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
0
817
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...

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.