Web Forms :: Signed WinForm Control Not Showing In Web Page?

Nov 8, 2010

I developped a light WinForm Control that run like an ActiveX in a Web Page. No problem yet.However, when i want to access System.IO I got a Security Exception. It seems that I have to sign my assembly, so that's what I did. When my assembly is signed, my Web Browser can't show the Winform. I set IE to download any ActiveX in the Security tab ... Nothing happens. Uncheck "Sign Assembly" ... works fine ...

View 2 Replies


Similar Messages:

Architecture :: Integrate .NET Page Into A Winform

Apr 1, 2011

I've an ASP.NET application running for reporting purposes. This is done for the management. The persons on the production floor have

a windows application running. Some of them needs to view the ASP.NET reporting page. To avoid writing twice the same reporting tools

(ASP.NET and Windows application) I want to import the ASP.Net pages into a windows form. I don't want to have the ASP.NET pages running

outside the windows application.

View 1 Replies

Security :: Page Not Recognizing Signed In Status

Jan 31, 2011

I am using the aspnet membership features and check to make sure the user is logged in before display the page:

Protected
Sub Page_Load(ByVal sender
As
Object,
ByVal e
As System.EventArgs)
Handles
Me
.Load
'Check for UserName
If Context.User.Identity.Name
Is
Nothing
Or IsDBNull(Context.User.Identity.Name)
Or Context.User.Identity.Name =
String.Empty
Then
Response.Redirect(
"~/Login.aspx"
)
End
If
Session(
"UserName"
) = Context.User.Identity.Name
UserName.Text = Session(
"UserName"
)
UserIDValue.Text = Membership.GetUser().ProviderUserKey.ToString()
End
Sub

Everything was working fine when I had two separate applications (two web.config files) using the same data base and the same "applicationName" in the web.config files...............

View 2 Replies

Winform Control Hosted In IE, FileIO Security Exception / How To Solve This Error Message

Nov 4, 2010

I see a message on:

winform control hosted in IE, FileIO security exception.

I have got the same problem, which I cannot figure out what is the solution for weeks.

I have Windows 7 (Home premium edition), framework 3.5 (how can I check that, if gacutil is correct version, if it metters, anyway ...)

I am writting on C#.

Also on assemblyInfo.cs :

[code]....

View 5 Replies

Forms Data Controls :: GridView Control On Page Not Showing Current Data On Databind

Jan 29, 2010

I have a page with a gridview control that shows files that have been uploaded to our site. The name of the uploaded files, who uploaded them, and if they have been downloaded, etc are stored in a table. The gridview is bound to the table through a sqlDataSource control. I have a button column in the gridview that downloads the file associated with a row when the button is clicked. All that works well. I have a check box column that shows checked if a file has been downloaded. When the download button is pressed.

the file downloads and then a short routine is run to update the downloaded field in the uploaded files table to set the downloaded field to true. This is done through a command string. All this works. Here is the question. After the update is run I do a databind on the gridview to update it. The databind is run in the PageLoad event is the page is a postback. This does not cause the current row to show downloaded =true (checked). If I refresh the page in the browser then it displays correctly.

View 6 Replies

Web Forms :: Use UrlReferrer After The User Has Signed-in?

Dec 22, 2010

I want to use UrlReferrer after the user has signed-in.

Can UrlReferrer also refer to a webpage outside of the web project? .. this is not what I want...

View 1 Replies

Web Forms :: Showing A Treeview Control In A Modal Window When Click On A Menu Control?

Mar 3, 2011

I want to make a website having the following UI.

Once I click on 'Engines included' a treeview having all the engine node should show. I am geting the engine collection dynamically from database.

1.What should i use to create enginesIncluded control? 2.How do i show a user control having a treeview on click of 'engine included' control? 3. I also need to show the selected engines on the top row as buttons .

View 1 Replies

Web Forms :: How To Convert Winform Component

Jan 25, 2010

I have succeeded in capturing image from webcam with window form.

There is a problem, i.e I'd like to apply this application on web page.

I try to convert winform component to webform component

(Winform Component (PictureBox) to Web User Control (asp:Image)), but it fails.

View 1 Replies

Web Forms :: Update Field With Name Of Signed In User

Jan 13, 2011

Using the form view control, when I click on the edit button to modify a record. the form is in update mode. When I clcik the update button any modified data is posted, but, for some reason the name in one filed named, user_update_name, does not. The name in the field will not change unless the field was empty. For example, if test1 was the last user to modify the record and the user_update_name field was empty, the field was now say Test1. If Test2 modified the same record, Test1 name will still display in the field. The command that fires when the update button is clicked.

Imports System.Data
Imports System.Data.Common
Imports System.Configuration
Imports System.Collections
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Web.UI.HtmlControls
Imports System.Data.SqlClient
Imports Microsoft.VisualBasic
Protected
Sub FormView1_ItemUpdating(ByVal sender
As System.Object,
ByVal e
As System.Web.UI.WebControls.FormViewUpdateEventArgs)
Handles FormView1.ItemUpdating
frmPartsDS.UpdateParameters("user_update_name").DefaultValue = User.Identity.Name
End
Sub

View 3 Replies

Forms Data Controls :: Chart Points Not Signed?

Mar 24, 2010

In the control Chart, I add few points, selected from the database:

var Diagram_1 = Razrez_D1.Series ["D1"];
sqlDA.SelectCommand.CommandType = CommandType.StoredProcedure;
sqlDA.SelectCommand.CommandText = "Razrez_D1";
sqlDA.SelectCommand.Parameters ["@ date1"]. Value = Session ["date1"]. ToString ();
sqlDA.SelectCommand.Parameters ["@ date2"]. Value = Session ["date2"]. ToString ();
sqlDA.Fill (dataSet1, "Razrez_D1");
sqlDA.SelectCommand.CommandType = CommandType.Text;
for (int i = 0; i <dataSet1.Razrez_D1.Rows.Count; i + +)
(
string name_s = dataSet1.Razrez_D1 [i]. Name.ToString ();
name_s = name_s.Substring (name_s.IndexOf ('№')). Trim ();
Diagram_1.Points.AddXY (name_s, dataSet1.Razrez_D1 [i]. Count);
Diagram_1.Points [i]. BorderColor = System.Drawing.Color.Black;;
Diagram_1.Points [i]. BorderWidth = 1;
if (Convert.ToInt32 (dataSet1.Razrez_D1 [i]. count)> 5)
(
Diagram_1.Points [i]. Color = System.Drawing.Color.Red;
)
else if (Convert.ToInt32 (dataSet1.Razrez_D1 [i]. count)> = 4 & & Convert.ToInt32
(dataSet1.Razrez_D1 [i]. count) <= 5)
(
Diagram_1.Points [i]. Color = System.Drawing.Color.Yellow;
)
else if (Convert.ToInt32 (dataSet1.Razrez_D1 [i]. count) <4)
(
Diagram_1.Points [i]. Color = System.Drawing.Color.Green;
)
)

The problem is that the points on the X axis are signed that way: first is not signed, second is signed, third is not signed etc How can I sigh all points?

View 1 Replies

Web Forms :: Writing Common / Master 'Signed In As' Style Bar?

Oct 22, 2010

I'd like to add a typical 'Signed in as' bar, cf this site.Since it's 'common', first thought is: master page.However any controls designed on a master page are only rendered 'in' the final page...... so you need the 'this' (Page reference) to access the control... so you can't write code 'on' a master page, whose 'this' is not a Page.HttpContext has Session, Request, etc - all useful but none with a 'Page' reference that I've noticedUpdatePanel looks neat, but I'd prefer a non-Ajax solution to learn the 'basic' way before perhaps later making it 'smarter' with Ajax.Question therefore is: how to write a script that is site-wide, for a master page, that references controls on the (rendered) master page, with or without a 'Page' reference.

View 1 Replies

Web Forms :: Showing Master Page Image In Child Page

May 3, 2012

I am having a folder with the name "MyPoints". I have created a new master page inside that folder.

I created aspx  page outside the folder "Mypoints" and also inherit the master page.

When i run the child page, I cann't able to view the images in the master page.

When i put the page inside the folder "Mypoints", i can able to see the master page image.

View 1 Replies

Web Forms :: Changes Not Showing Up Unless Hit Control F5?

Jan 26, 2010

I have a webforms project in Visual Studio 2008. In the page load I have some code like:

Label1.Text = "Hello"

Compile, run, it shows up fine.

Then I change the code to Label1.Text = "Bla Bla"

Compile, run, the label still says "Hello."

I thought maybe it was just caching or something, so I compiled and deployed the project to my server. The label STILL says "Hello" on the server. That could not caching, could it? The page address in the browser while running locally is totally different than the page address when viewing in on my server.

Someone told me to hit Control F5 in the browser, and on BOTH the server, and on my development machine, the text changed to "Bla Bla."

This only seems to be happening in one project (and so far at least, on this one page.)

What is going on here? Why just this project? I would think any change in my code, when compiled, would show up immediately.

View 1 Replies

Forms Data Controls :: Showing Image Control And Label Control Based On The Data In Grid View?

Aug 16, 2010

I have a datagrid view, in that I have a templete column ,inside that I have Image control and label control.

Based on the Data from one column in database, i have to show Label and Image control,in template column.

How can i do that?

I am using ASP.net 2005 and dev language is C#.

View 4 Replies

Web Forms :: Put Panel Control But Not Showing Up In Code

Apr 15, 2010

I put a panel control on my web form, but i'ts not showing up in the code behind when I do a me.Panel. It was for a while but I was trying to do something like me.panel.visible and it kept telling me when I ran the app that panel was not part of my form.

View 3 Replies

Web Forms :: Data Showing Up In A Control When It's Not In Database?

Dec 8, 2010

In my web page, in the Page_Load, I populate my alerts dropdownlist with data from my database. This works fine. I load up the alert and then press the delete button on my web page and it correctly deletes my Alert. I close out the web form and then go back into it and the alert still shows up in my dropdownlist but it's not in the database.

Here is my Page_Load code:

[Code]....

I saw the SQLDataSource.CacheDuration member but I'm not sure how to use it. If I set this right after I populate my dropdownlist box, will my dropdownlist still be populated?

View 1 Replies

C# - How To Create Self Signed Certificates

Oct 1, 2010

I am trying to open my homepage with HTTPS in my test server. Is there a way i can create Self signed certifcates and see if https works. some links or any ideas with how to do Its an ASP.Net project and IIS V6.0

View 3 Replies

C# - HTTPS With Self Signed Certificate

Oct 11, 2010

I am using a Self signed certificate for HTTPS. I have it ready. what should be changed in IIS and also what should be changed in the code for https to come into affect. I need https for some pages(not all).

View 2 Replies

Winform Versus MVC

Jun 1, 2010

I want to know when to use winform and MVC asp.net

View 11 Replies

Web Forms :: Login Control Not Showing Failure Text?

Aug 12, 2010

I am using asp login control on my aspx page. and for different conditions, i need to show different failure messages. so , I am resetting FailureText property in code behind.

but, the control does not show failure message for any condition.

I have converted this login control to template for design purpose.

View 1 Replies

Web Forms :: Menu Control Not Showing Submenu Items?

Aug 22, 2010

I have for example a ASP Menu control having a static (File) and dynamic (Open, New) menu such as :

[code]....

I am able to see this menu under VS 2008 under my development PC. But when I deploy the app to a IIS server, and run the app, the whole app appeared the same. Only the Menu has "File" for selection but the submenu items (Open and New) did not appear when the mouse cursor was moved over "File". Only the Outline of the dropdown box of the submenu appeared.

View 2 Replies

Web Forms :: Dynamically Showing Control On Button Click?

Feb 9, 2011

i was struck totally when i am trying to dynmically show fileupload control on button click...here is my scenario of my flow....

initially i will be showing only one fileupload control...and if the user wants to upload more files he will click on add more button so that it should dynamically show another fileupload...

like wise he should be able to upload upto 40 files max.

View 4 Replies

Web Forms :: Showing Different Products On The Same Page?

Feb 5, 2010

I'm trying to pull different product meta tags from a database onto a page. The problem I have is my DefaultValue="59" is the only product to be displayed if I change this value to another product id it displays just that products meta tags.

Below is my code:

[Code]....

[Code]....

[Code]....

View 4 Replies

Web Forms :: Showing Excel On Web Page?

Aug 11, 2010

I want to show Excel objects and its functionality on my web page. Is there any way to do so? I want to show it the way google spreadsheet is.

View 1 Replies

C# - Error In HTTPS For Self Signed Certificate

Oct 11, 2010

This is in VS 2005. And IIS is 6.0. I am trying to use Self signed certificate for HTTPS. In the code i am redirecting from http to https for few pages. It is nt working fine. and in the IIS manager, for each page that i want HTTPs, i have changed its setting by checking "Require Secure Channel(SSL)" and "Require 128 bit encryption".

public void setSecureProtocol()
{
string redirectUrl = null;
bool bSecure = true;
bool SecureConnection = true;
if (bSecure && SecureConnection)
redirectUrl = Request.Url.ToString().Replace("http:", "https:");
else
if (!bSecure && SecureConnection)
redirectUrl = Request.Url.ToString().Replace("https:", "http:");
if (redirectUrl != null)
Response.Redirect(redirectUrl);
}

Pages throw me an error like this The page must be viewed over a secure channel The page you are trying to access is secured with Secure Sockets

Layer (SSL).

Please try the following:

* Type https:// at the beginning of the address you are attempting to reach and press ENTER.

HTTP Error 403.4 - Forbidden: SSL is required to view this resource. Internet Information Services (IIS)Internet Information Services (IIS) When i try to put https in the start of the URl, it wont call. I have no idea whats wrong in here. Here, Its not redirecting from http to https. For the pages that i am not redirecting in the code behind, and changing in the IIS, i can see the HTTPS when i check the two checkboxes. Internet Information Services (IIS)

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved