473,795 Members | 3,358 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Mixing ASP.NET with windows forms

I have an ASP.NET page with code behind that i'm trying to get to launch a
modeless windows form on the IIS server.

I tried creating a windows form in the web application project and adding a
reference to system.windows. forms. The app will compile with no problems but
for some reason the form won't launch when the method it's in is called.

The next step will be to try and put the form in a class lib on the server
unless someone knows what the problem might be or has a better idea.
Nov 19 '05 #1
9 1355
Chuck Bowling wrote:
I have an ASP.NET page with code behind that i'm trying to get to launch a
modeless windows form on the IIS server.

I tried creating a windows form in the web application project and adding a
reference to system.windows. forms. The app will compile with no problems but
for some reason the form won't launch when the method it's in is called.

The next step will be to try and put the form in a class lib on the server
unless someone knows what the problem might be or has a better idea.


Are you trying to get the page to launch a windows app on the SERVER?
that wouldnt help the user/client much, especially a Modal one...

But to answer your question, no. You could call an app sure, but you
need to specify the context/user and that may mean it wont "show" on the
console at the server....

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
Nov 19 '05 #2

"Curt_C [MVP]" <software_at_da rkfalz.com> wrote in message
news:ey******** ******@TK2MSFTN GP10.phx.gbl...
Chuck Bowling wrote:
I have an ASP.NET page with code behind that i'm trying to get to launch
a modeless windows form on the IIS server.

I tried creating a windows form in the web application project and adding
a reference to system.windows. forms. The app will compile with no
problems but for some reason the form won't launch when the method it's
in is called.

The next step will be to try and put the form in a class lib on the
server unless someone knows what the problem might be or has a better
idea.


Are you trying to get the page to launch a windows app on the SERVER? that
wouldnt help the user/client much, especially a Modal one...

But to answer your question, no. You could call an app sure, but you need
to specify the context/user and that may mean it wont "show" on the
console at the server....


Yes. I want a popup window on the server that notifies the webmaster when a
specific page has been accessed. It's not intended for the client.

I don't have a problem launching a MessageBox on the server. But I am having
a problem figuring out how to do the same thing with a nonmodal form.
Nov 19 '05 #3
Chuck Bowling wrote:

Yes. I want a popup window on the server that notifies the webmaster when a
specific page has been accessed. It's not intended for the client.

I don't have a problem launching a MessageBox on the server. But I am having
a problem figuring out how to do the same thing with a nonmodal form.


Path out the EXE, make sure permissions are set on it, and the folder
for the user that IIS is running under or the context of the call.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
Nov 19 '05 #4

"Curt_C [MVP]" <software_at_da rkfalz.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Chuck Bowling wrote:

Yes. I want a popup window on the server that notifies the webmaster when
a specific page has been accessed. It's not intended for the client.

I don't have a problem launching a MessageBox on the server. But I am
having a problem figuring out how to do the same thing with a nonmodal
form.


Path out the EXE, make sure permissions are set on it, and the folder for
the user that IIS is running under or the context of the call.


Ok... I'm not sure what you're saying here.

Do you mean compile the Form as a separate project and spawn a process for
the executable?
Nov 19 '05 #5
Chuck Bowling wrote:
"Curt_C [MVP]" <software_at_da rkfalz.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Chuck Bowling wrote:
Yes. I want a popup window on the server that notifies the webmaster when
a specific page has been accessed. It's not intended for the client.

I don't have a problem launching a MessageBox on the server. But I am
having a problem figuring out how to do the same thing with a nonmodal
form.


Path out the EXE, make sure permissions are set on it, and the folder for
the user that IIS is running under or the context of the call.

Ok... I'm not sure what you're saying here.

Do you mean compile the Form as a separate project and spawn a process for
the executable?


You mean you have the Windows form IN your ASP.NET app????
Eeek..
Yeah, put it in a seperate, windows form app, and put the EXE in a place
that you can call on the server.
--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
Nov 19 '05 #6

"Curt_C [MVP]" <software_at_da rkfalz.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Chuck Bowling wrote:
"Curt_C [MVP]" <software_at_da rkfalz.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Chuck Bowling wrote:

Yes. I want a popup window on the server that notifies the webmaster
when a specific page has been accessed. It's not intended for the
client.

I don't have a problem launching a MessageBox on the server. But I am
having a problem figuring out how to do the same thing with a nonmodal
form.

Path out the EXE, make sure permissions are set on it, and the folder for
the user that IIS is running under or the context of the call.

Ok... I'm not sure what you're saying here.

Do you mean compile the Form as a separate project and spawn a process
for the executable?


You mean you have the Windows form IN your ASP.NET app????
Eeek..
Yeah, put it in a seperate, windows form app, and put the EXE in a place
that you can call on the server.


Ok, I'll give it a shot. Just out of curiousity, why the Eeek?
Nov 19 '05 #7
Chuck Bowling wrote:
"Curt_C [MVP]" <software_at_da rkfalz.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Chuck Bowling wrote:
"Curt_C [MVP]" <software_at_da rkfalz.com> wrote in message
news:%2***** ***********@TK2 MSFTNGP09.phx.g bl...
Chuck Bowling wrote:
>Yes. I want a popup window on the server that notifies the webmaster
>when a specific page has been accessed. It's not intended for the
>client.
>
>I don't have a problem launching a MessageBox on the server. But I am
>having a problem figuring out how to do the same thing with a nonmodal
>form.

Path out the EXE, make sure permissions are set on it, and the folder for
the user that IIS is running under or the context of the call.
Ok... I'm not sure what you're saying here.

Do you mean compile the Form as a separate project and spawn a process
for the executable?


You mean you have the Windows form IN your ASP.NET app????
Eeek..
Yeah, put it in a seperate, windows form app, and put the EXE in a place
that you can call on the server.

Ok, I'll give it a shot. Just out of curiousity, why the Eeek?


They run under very different bases, designed for completely different
interfaces and with different "assumption s" (ie root classes).

It's a lot like trying to have your refrigerator cook your food. Sure,
you could probably do it but its going to be a lot easier to just use it
for what it was intended for :}

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
Nov 19 '05 #8

"Curt_C [MVP]" <software_at_da rkfalz.com> wrote in message
news:uM******** ******@TK2MSFTN GP14.phx.gbl...
Chuck Bowling wrote:
"Curt_C [MVP]" <software_at_da rkfalz.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Chuck Bowling wrote:

"Curt_C [MVP]" <software_at_da rkfalz.com> wrote in message
news:%2**** ************@TK 2MSFTNGP09.phx. gbl...
>Chuck Bowling wrote:
>
>
>>Yes. I want a popup window on the server that notifies the webmaster
>>when a specific page has been accessed. It's not intended for the
>>client.
>>
>>I don't have a problem launching a MessageBox on the server. But I am
>>having a problem figuring out how to do the same thing with a nonmodal
>>form.
>
>Path out the EXE, make sure permissions are set on it, and the folder
>for the user that IIS is running under or the context of the call.
Ok... I'm not sure what you're saying here.

Do you mean compile the Form as a separate project and spawn a process
for the executable?

You mean you have the Windows form IN your ASP.NET app????
Eeek..
Yeah, put it in a seperate, windows form app, and put the EXE in a place
that you can call on the server.

Ok, I'll give it a shot. Just out of curiousity, why the Eeek?


They run under very different bases, designed for completely different
interfaces and with different "assumption s" (ie root classes).

It's a lot like trying to have your refrigerator cook your food. Sure, you
could probably do it but its going to be a lot easier to just use it for
what it was intended for :}


Hummm... Ok.

What I don't understand is why a MessageBox works without any problem and a
Form control won't. They are both derived from System.Windows. Forms...
Nov 19 '05 #9
> Hummm... Ok.

What I don't understand is why a MessageBox works without any problem and a
Form control won't. They are both derived from System.Windows. Forms...


In your case I cant say for certain but MessageBox is calling a
preconfigured base form, not a custom one... that may make a difference.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
Nov 19 '05 #10

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

Similar topics

0
1830
by: Erik Max Francis | last post by:
Is there any prohibition against mixing different protocols within the same pickle? I don't see anything about this in the Python Library Reference and, after all, the pickle.dump function takes a protocol argument for each time it's called. (This is in Python 2.3.3.) I have a pickle containing two objects: a tag string and a (large) object containing many children. The identifying string is there so that you can unpickle it and...
4
23692
by: Rudolf | last post by:
Is it possible to add a vb.net source code module to a c# project and if so how? Thanks Rudolf
0
2870
by: kaalus | last post by:
Hello I have problem mixing managed and unmanaged C++ code in VS.NET 2003. I want to create a windows forms application which uses some C++ code that is incompatible with managed extensions (__fastcall etc.). I have tried disabling "compile as managed" option for these specific files, but it does not help: by trial and error I figured out that if there are any "references" in the project, IDE adds /FU switch with each of these references to...
1
1266
by: Steve Marsden | last post by:
Hi All the information I had read suggested that if you had an existing C project that you wished to change to managed code all you had to do was use the /clr switch and then over time you could convert/add managed code bit by bit. I have done this on my large C project and all compiles and links OK. So far so good.
2
2130
by: Shashi | last post by:
My development environment is ASP.Net 1.1. When the user does multiple logins to the system and navigates to different screens and clicks back button sometimes it reading the session variables values are mixing each other. How to avoid this kind of situation? Basically I am looking for the steps to be taken when we develop web based application using ASP.Net (.Net framework 1.1) for multiple logins.
7
5976
by: Marcin Rzeznicki | last post by:
Hello, Do you think it is legitimate practice to mix GDI+ and GDI calls (via Get/ReleaseHDC()) in paint event of a control? I've heard there is possibility of performance loss while "locking" Graphics object which is done as a side-effect to GetHDC() call - could you confirm? Another question that comes to my mind when planning mentioned operation is: if the control painted on uses double-buffering style, will GDI calls make use of "back...
28
3104
by: ziman137 | last post by:
Hello all, I have a question and am seeking for some advice. I am currently working to implement an algorithmic library. Because the performance is the most important factor in later applications, I decide to write it in C instead of C++. However, I thought it might be convenient to use some C++ code at some misc places. I'm aware that, I could always use the C++ compiler to get it work.
1
7917
by: AlwaysPerplexed | last post by:
Hi, I'm somewhat stuck and could really appreciate some help. I'm writing a little program using the OpenCV libraries, I started this as a Win32 Console Application and everything worked fine. I now need a GUI, so i started a Windows Forms Application, however when i included the OpenCV header files (before adding any source) i got a bunch of errors (see the bottom of my post). I have been informed that this is because I'm using .NET...
3
2036
by: rewtedesco | last post by:
I bet that others came across this problem and that there is a very good general solution, however I have not been able to get this done. In short: How to replace std::cout by something that writes in a dialog box without mixing my code with some monstrous class library such as in Qt4, or for Windows Microsoft's class libraries. The details of this implementation should not matter for this question. The only thing that matters is that...
0
9519
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10213
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...
1
10163
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
10000
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
9037
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...
0
5436
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
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
3
2920
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.