473,404 Members | 2,179 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,404 software developers and data experts.

Launching a Winform from an ASP.NET page

We have a two-pronged application, one is ASP.NET driven and the other is a
bunch of WinForms packed into a VB.NET executable. Is there anyways to be
able to call that executable from the ASPX page?

We had implemented a custom URL handler in the past, but in our next release
we cannot require any users to have administrative rights to their machine,
so that means they cannot write the necessary registry information to
register the URL handler, so we are having to find a different approach.

We've tried a WinForm control embedded in IE6, but Process.Start() renders
the method completely uncallable, so if anyone has any other ideas I could
try, please let me know.

Thanks,
Michael
Nov 18 '05 #1
4 2230
On Tue, 17 Aug 2004 18:18:35 -0500, "Mike"
<Mi*****@no-spam.PrioritySoftware.com> wrote:

We've tried a WinForm control embedded in IE6, but Process.Start() renders
the method completely uncallable, so if anyone has any other ideas I could
try, please let me know.

I'm not sure how its done but the technology is called ActiveX
controls. Maybe the project has to be recompiled to be used as such?

After creating the control you could embed it into the page using the
<object> tags?

-Adam
Nov 18 '05 #2
its not called activex any more! oops.

hope this helps.

http://www.eggheadcafe.com/articles/20021205.asp

-Adam

Nov 18 '05 #3
You can launch Winforms via the <object> tag and them on demand.download.
There are code access security considerations if you want to do more than
Ul.

"Mike" <Mi*****@no-spam.PrioritySoftware.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
We have a two-pronged application, one is ASP.NET driven and the other is
a
bunch of WinForms packed into a VB.NET executable. Is there anyways to be
able to call that executable from the ASPX page?

We had implemented a custom URL handler in the past, but in our next
release
we cannot require any users to have administrative rights to their
machine,
so that means they cannot write the necessary registry information to
register the URL handler, so we are having to find a different approach.

We've tried a WinForm control embedded in IE6, but Process.Start() renders
the method completely uncallable, so if anyone has any other ideas I could
try, please let me know.

Thanks,
Michael

Nov 18 '05 #4
"Mike" <Mi*****@no-spam.PrioritySoftware.com> wrote in
news:#C**************@TK2MSFTNGP12.phx.gbl:
We have a two-pronged application, one is ASP.NET driven and the other
is a bunch of WinForms packed into a VB.NET executable. Is there
anyways to be able to call that executable from the ASPX page?


Create a DLL interface - sort of a class factory. In the DLL, add a
reference to the .EXE. Use the DLL to instantiate the form logic.

However, I would avoid Winforms in IE if possible... I found them to be
unreliable, require too much tweaking with security, and generally
immature. I think Microsoft needs a couple more iterations before Winforms
in IE will work smoothly.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 18 '05 #5

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

Similar topics

6
by: Brent Stevenson | last post by:
DOtNEt newbie. How do you launch an IE Browser from a winform?
10
by: Brian Brown | last post by:
I have code which works as an asp.net page that posts an xml file to web page and gets a response back. When the the calls GetResponse() it goes into the page it's posting to to and works fine....
5
by: Scott Meddows | last post by:
I'm trying to embed a winform control into an HTML page and I don't seem to be getting anywhere.. I've put the following object tag in the body of the HTML document <object id="UpdateControl11"...
6
by: randy1200 | last post by:
I'm using Visual Studio 2005 and C#. I need to print a WinForm used for data entry as a graphic. In other words, I need to print the exact WinForm the user sees on the screen. I searched through...
0
by: Hasim AH | last post by:
Hi .. Just getting interested to learn C# and needs help. I want to write C# application so that the program will execute and draw graphics when the user select the drawing menu from the main...
2
by: jyanmin.fang | last post by:
Hi, In my current project, I need to embed an .NET winform usercontrol in the aspx page (via <Objecttag). This winform usercontrol has an event called DoEvent (void DoEvent()). This winform...
1
by: moondaddy | last post by:
I had to repost this becuase I renewed-changed my msdn alias. Also, the asnwer in the other past did not understand what I'm trying to do, so I'll attempt to clarify. I have a .net 2.0 winforms...
5
by: Ed Jay | last post by:
I'm having difficulty launching a page in IE with URL#name. No issue with FF or Opera On Page 1, I have the link <a href="URL#here>Go here</a>. On Page 2, I have <a name="here"></a>. Both...
7
by: =?Utf-8?B?bWljaGFlbCBzb3JlbnM=?= | last post by:
I have a WinForm application that, depending on user actions, may spin for a while doing extensive calculations, showing a progress bar in the meantime. I would like to be able to launch a second...
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
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
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,...
0
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...

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.