Hi
my job is to migrate our WinForms application to ASP.NET. This app was
build very modular so every peace of code can be replaced by another
"modul". There are 1 VS-solution with about 60 projects (dll's) in it.
Now I have to design a Web-Client modul (actually the web-interface). To
maintain the modularity, I thought of making one ASP.NET-Project inside
of the solution and create some projects containing Custom Web Controls.
Did somebody has similar design requirements? Is there any
better/alternative solutions (links)? What is your advice?
Don
Nov 19 '05
12 2215
I checked it and there's no way to compile a *UserControl* into a dll
and reference it. That can be done with CustomControls only..
Grant Merwitz wrote: Not sure about that actually. I know you can compile them into a dll, but not sure if it can be referenced like a project reference, but i can't imagine why not. "Don Huan" <do*@kostik.d e> wrote in message news:OO******** ******@TK2MSFTN GP10.phx.gbl...
ASAIK there's no way to compile and reference UserControls across projects (like custom controls), or is there one? At least, VS doesn't provide me the ability to create a UserControl inside of a project other than WebProject (like in a Web Class Library). I'm relatively new to asp.net, so sorry for dumb question :)
Don Grant Merwitz wrote:
How come you can't use UserControls. It's definately a way to modularise a WebSite (i've found), and you can compile them, and reference and use them across projects. Hence you could modularise them.
But this sounds like an awfull amout of work. Considerin g they will most likely only be used in one solution - the website, why not group them all together under one solutiong, in a folder structure simulating your current modules. They are, after all, just a UI to your modules, and shouldn't contain too much functionality as it will be using the code you already have "Don Huan" <do*@kostik.d e> wrote in message news:uR***** ***********@tk2 msftngp13.phx.g bl...
Thanks all for quick responce.
Actually every of our modules consists of 3-4 Projects like - module.buisness logic - module.common - module.winform
So the requirement is to create one project like - module.aspnet for every module.
And that's the reason I can't use UserControls. My further thoughts are about orginizing css/js and so on in such a big solution. The aim is to keep web site both modular and simply. Grant Merwitz wrote:
>I think you spot on with your solution. >You don't necessarily have to use controls, but they are nice if there's >set pieces of functionality you want to reuse. > >The nice thing about keeping it in the same solution, is that you don't >have to keep referencing your compiled dll's, >as you make changes to your projects it will update the project >referenc es set up in Visual Studio. > >I have a project setup similair to the one you are talking - a tad >smaller though - but it works like a charm. >one annoying thing however, may be compile time when developing, you >can ofcourse just rebuild the web project on its own, but when debugging >this may be frustrating. > >"Don Huan" <do*@kostik.d e> wrote in message >news:Oj*** ***********@TK2 MSFTNGP10.phx.g bl... > > > >>Hi >> >>my job is to migrate our WinForms application to ASP.NET. This app was >>build very modular so every peace of code can be replaced by another >>"modul" . There are 1 VS-solution with about 60 projects (dll's) in it. >>Now I have to design a Web-Client modul (actually the web-interface). >>To maintain the modularity, I thought of making one ASP.NET-Project >>inside of the solution and create some projects containing Custom Web >>Control s. >>Did somebody has similar design requirements? Is there any >>better/alternative solutions (links)? What is your advice? >> >>Don > >
What is the best way to maintain extern files like CSS, JS and so on? It
would be probably great if they could be placed under their modules
respectively. But how can I then reference them gently from my
CustomControls?
- module_XX
-- CustomControl_x x.cs
-- CustomControl_x y.cs
-- script.js
-- style.css
What are your thoughts about that?
Don
Kevin Spencer wrote: Well, Don, it depends on what you mean by "modular." If you constructed your WinForms application correctly, you separated business logic from UI logic and code. And if that's the case, you can either re-use the business classes of your WinForms app (if they are managed), or rebuild them as managed classes (if they are not), or use Interop to use them (which will engender a performance hit and some complexity, which I don't recommend offhand). As for your Custom Controls, anywhere in your WinForms app that you use Custom Control, create Custome ASP.Net Server Controls to replace them.
There are 2 basic ways to approach this. First, an external CSS or JS file,
like a DLL or namespace can be referenced or not in any give page. Second,
CSS can define classes, and is object-oriented. JavaScript is also somewhat
object-oriented, and can be used to define both classes and functions.
We create Custom Controls that are contained in divs. The outer div has a
CSS class, which is used by our graphics designer to design the style and
look of the Control (which has no inline attributes, no tables for layout,
etc, but are "pure" HTML) in any given page context. This allows us to
create Custom Controls that can be "skinned" using CSS classes in external
style sheets.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Everybody picks their nose,
But some people are better at hiding it.
"Don Huan" <do*@kostik.d e> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. .. What is the best way to maintain extern files like CSS, JS and so on? It would be probably great if they could be placed under their modules respectively. But how can I then reference them gently from my CustomControls?
- module_XX -- CustomControl_x x.cs -- CustomControl_x y.cs -- script.js -- style.css
What are your thoughts about that?
Don Kevin Spencer wrote: Well, Don, it depends on what you mean by "modular." If you constructed your WinForms application correctly, you separated business logic from UI logic and code. And if that's the case, you can either re-use the business classes of your WinForms app (if they are managed), or rebuild them as managed classes (if they are not), or use Interop to use them (which will engender a performance hit and some complexity, which I don't recommend offhand). As for your Custom Controls, anywhere in your WinForms app that you use Custom Control, create Custome ASP.Net Server Controls to replace them. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Hayden Kirk |
last post by:
Hey guys
I am about to write some back end software for my business. I want a system
that I can create invoices, clients etc... I can do this no problem. However
I want to write it in modules so its extendable in the future.
Like someone else can write a module for it and it can plug stright into my
system. I can't figure out a good way to do this in php. I was thinking of
hooks or something, but PHP does not support this.
|
by: Naren |
last post by:
Hello All,
I am presently designing a cleint server architecture.
I require some suggestions and help by the experts here.
MyServer class conatins a list of Mysock class.
class Myserver
{
private:
list<Mysock> L1;
|
by: Gary James |
last post by:
This may not be a direct C# question, but since I'll be using using C# for
development, I thought I'd pose the question here.
I'll soon be involved in the design of a new software product that will
employ a software "Plug-In" architecture. Taking the plug-in route will
give us a design that can adapt to, as yet, undefined future requirements
(within the scope of the plug-in interface spec of course). In the past
I've done this with...
|
by: Nick Goloborodko |
last post by:
Hi,
I'm in the process of conceptualizing a new ASP.NET application. I'm a
relative newbie in ASP.NET / .NET in general, so any comments will be
greatly appreciated.
Basically i need to make my application as modular as possible, something
along the lines of Mambo (PHP CMS System) Drupal (another PHP CMS) or
something similar to these. What I'm thinking is to provide the following
structure: core of the application includes essential...
|
by: slonocode |
last post by:
I'm wondering if there are certain processes that I could follow to
learn to design better classes? Where could I find these processes?
Is designing classes more of an art that comes from experience or can it
at least be somewhat done by a process?
I have the most trouble with abstracting the specifics, such that a
class could be reused or just be generic such that anyone could use them.
| |
by: Silent Ocean |
last post by:
Hi
1. I am in process of designing N-Tier Application using ASP.NET. Can
anyone guide me the right material or microsoft guidelines document
which I can used in designing the N-Tier application.
2. I would also like to know whether to use Web Services or .Net
Remoting in designing N-Tier application
3. General 3 Tier architecture has 3 Tier : Presentation Layer ,
Business Layer and Database Layer
|
by: Mahesh Kumar.R |
last post by:
I'm into designing an application in winforms but in near future my client may request the same thing in webforms. so
(1) what are all the design guidelines and ways are there to migrate easily in future (winforms -> weforms)...?
(2) how can i design my application which can be accessed in both winforms and webforms by not writing much of code for the same business logic. ?
(3) which is the cost effective method ?
Please guide me to...
|
by: Canice |
last post by:
I'm working on a web application where 90% of it is common 'product'
code an the other 10% is customer specific.
I want some method of separating the customer specific presentation,
business and data access layers from the product code as I don't the
main product code to be bloated with customer specific code.
Ideally I'd like to have one solution for the product and one for each
customer. However I haven't found a way to separate the...
|
by: abhijitbkulkarni |
last post by:
Hello,
I am designing a .NET database application that uses 3 tier architecture. Starting initially, this application will be desktop application but I will convert it into a website later but design that I am planning should support both version.
Development Environment : VS2008, C#
Currently Database supported are MS SQL Server 2005 and MYSQL 5 and design for database support is extensible.
This application contains several high...
|
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...
|
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...
| |
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,...
|
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...
|
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |