473,783 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Windows Forms library in an ASP code behind

Hello, recently I was working on a project where I needed to automate
PDF generation. I found two open source libraries that I liked, but
the best one required the Windows.Forms class to be used in the C#
code-behind. When I tested the library, this worked fine in Visual
Studio 05.

What I was wondering was, are there performance concerns or security
concerns in using the Windows.Forms library in an ASP.NET website?
Will using it impact my scalability? All thoughts are welcomed, thank
you.

Oct 17 '07 #1
2 1345
it depends.

asp.net server code can not create actual window.forms controls as these
is no desktop to create a window on. if you control tries to create a
window it will fail, but it may not need to.

a dll used in asp.net should be thread safe, this is not an issue for a
windows application, so you may run into problems here.
-- bruce (sqlwork.com)
justin wrote:
Hello, recently I was working on a project where I needed to automate
PDF generation. I found two open source libraries that I liked, but
the best one required the Windows.Forms class to be used in the C#
code-behind. When I tested the library, this worked fine in Visual
Studio 05.

What I was wondering was, are there performance concerns or security
concerns in using the Windows.Forms library in an ASP.NET website?
Will using it impact my scalability? All thoughts are welcomed, thank
you.
Oct 18 '07 #2
On Oct 17, 11:46 pm, bruce barker <nos...@nospam. comwrote:
it depends.

asp.net server code can not create actual window.forms controls as these
is no desktop to create a window on. if you control tries to create a
window it will fail, but it may not need to.

a dll used in asp.net should be thread safe, this is not an issue for a
windows application, so you may run into problems here.

-- bruce (sqlwork.com)

justin wrote:
Hello, recently I was working on a project where I needed to automate
PDF generation. I found two open source libraries that I liked, but
the best one required the Windows.Forms class to be used in the C#
code-behind. When I tested the library, this worked fine in Visual
Studio 05.
What I was wondering was, are there performance concerns or security
concerns in using the Windows.Forms library in an ASP.NET website?
Will using it impact my scalability? All thoughts are welcomed, thank
you.
Thank you very much for your help.

The API I'm using for PDF creation was meant for Windows.Forms but
doesn't actually create any forms or windows. If I import the
Windows.Forms library in my C# code-behind it works fine. I just
wasn't sure if the functions in the Windows.Forms library scale to the
level needed for a web application. I'm looking at up to 200 users,
but probably no more than 30-40 at peak usage. I would like the
application to be much more scalable however and wasn't sure how
Windows.Forms would impact that.

Oct 18 '07 #3

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

Similar topics

9
2824
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am facing. Please please help me to solve this as soon as possible. So here we go ... I am not able to take the screen shot of the windows form based "Smart
1
5148
by: Rob Deacon via .NET 247 | last post by:
I am just getting into this .NET stuff. Looks really handy. I wastrying to run some standard tests, like throwing up aMessageBox.Show("Code Hit Here - ln 124"); Just to make sure Iwas building things right. I realize I needed to use a few things from the library to makethis work, one of the big ones being System.Windows.Forms, butit wasn't there in my library at all. I checked at MSN Libraryto find out all the System namespaces and I am...
3
2504
by: Chris Dunaway | last post by:
A quick scan of the group did not immediately reveal an answer to my questions so here goes. First let me describe my app and then I'll ask the questions. I am writing a Windows Forms App (not Web Forms) that serves as a thin client to some web services. In other words, the Windows Forms app will be installed on the client machines and that app will call web services that are deployed on my server.
5
1349
by: John Blair | last post by:
Hi, I have one form that i want to make similar to another form but add some additional controls. I thought the following code would make my webform4 have all the content of webform3 but nothing shows up in webform4.....how do i make this work? Thanks. Public Class WebForm4
2
14024
by: JohnR | last post by:
Let's say I have an MDI parent form with a textbox. If I create an MDI child form and, at runtime, move the MDI child window over the textbox on the MDI parent, the textbox appears in front of the MDI child window. How can I make the MDI child window appear in front of any controls that may be on the MDI parent? thanks, John
4
6666
by: Jerad Rose | last post by:
I'm baffled by this -- is there not a typed object used for ComboBox Items? Best I can tell, all of the methods for ComboBox that accept an Item are of type Object. Why in the world is a common/standard .NET control accepting an Object as a parameter type? In Web Forms, there is a ListItem object that can be passed in to add/retrieve objects from a DropDownItems collection. I searched Google groups, and all the solutions I'm finding...
2
1392
by: justin | last post by:
Hello, recently I was working on a project where I needed to automate PDF generation. I found two open source libraries that I liked, but the best one required the Windows.Forms class to be used in the C# code-behind. When I tested the library, this worked fine in Visual Studio 05. What I was wondering was, are there performance concerns or security concerns in using the Windows.Forms library in an ASP.NET website? Will using it impact...
1
1368
by: justin | last post by:
I thought I posted this an hour ago, but don't see it. I'm sorry if it's shown twice. Hello, recently I was working on a project where I needed to automate PDF generation. I found two open source libraries that I liked, but the best one required the Windows.Forms class to be used in the C# code-behind. When I tested the library, this worked fine in Visual Studio 05.
21
3386
by: Dan Tallent | last post by:
In my application I have a form (Customer) that I want to be able to open multiple copies at once. Within this form I have other forms that can be opened. Example: ZipCode. When the user enters a zipcode that is unknown this form will open. I don't want users to modify any of this customers data until they close the zipcode form. Normally this can accomplished using a modal form, however this prevents me from opening a new copy of...
0
9643
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10313
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10147
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
10081
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,...
1
7494
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6735
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5378
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
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3643
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.