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

Using a Class Library Settings File in ASP.NET 2.0

Hey,

I have kind of an architecture question.

I have a dynamic website that is using a Windows Form Backend and a ASP.NET
front end. They are both using C# 2.0. I also have a class library that
contains namespaces for Com.Site and Com.Site.Data.

Com.Site contains my business objects which, for security reasons only
contains a return GetList List<obj>, maybe a Search.

Com.Site.Data Contains a strongly typed dataset for to the database.

The admin WinForm utility Com.Site.SiteManager accesses the DataSet
Directly, and the ASP.Net accesses the Com.Site Business objects.

Is this a good design from an architecture/security purpose?

The Com.Site.Data DataSet uses its native Settings file to access the
Connection String. Is there a way to modify the settings from another
Config file? (ie. [configuration for="Com.Site.Data"] ). I need to set
the connection setting from the WinForm and ASP.Net sides.

I can do some changes to the DataSet.Designer.cs, but I don't want to do
that because, everything I refresh the Dataset it gets overwritten.

Thanks in Advanced
BD

Mar 10 '06 #1
2 2008
Hi,

"Ben Dewey" <As*********@hotmail.com> wrote in message
news:Oh**************@TK2MSFTNGP09.phx.gbl...
Hey,

I have kind of an architecture question.

I have a dynamic website that is using a Windows Form Backend and a
ASP.NET front end.
What you mean with a win form backend?


Is this a good design from an architecture/security purpose?


I'm not very clear yet, where is the dataset located? are you using a
database?


--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Mar 10 '06 #2
By WinForm back end I mean that I am using DataGridViews from a .NET Windows
Form.

I am using a SqlServer 2005 Database.

I have 1 solution with 3 projects

the web project (ASP.NET)
the Business Objects (C#.Net Class Library, with Com.Site, Com.Site.Data,
and Com.Site.DataSet)
the Windows Form Application (Com.Site.SiteManager)

Again, the main issue is trying to get the settings (ie. Connection String)
from the ASP.NET pages to Business objects, which is an external dll
Mar 10 '06 #3

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

Similar topics

6
by: Billy Jacobs | last post by:
I have a website which has both secure and non-secure pages. I want to uses forms authentication. How do I accomplish this? Originally I had my web.config file in the root with Forms...
11
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
9
by: Ben Dewey | last post by:
Project: ---------------------------- I am creating a HTTPS File Transfer App using ASP.NET and C#. I am utilizing ActiveDirectory and windows security to manage the permissions. Why reinvent...
2
by: Tony Jones | last post by:
Is it possible for me to create a class library DLL and have it read it's configuration settings from the web.config of the ASP.NET application referencing it? IE - if I call...
16
by: Timm | last post by:
I'm trying to use ASP objects (basically formed and populated based on Web.Config settings) and I want to use them in a different non-asp program with minimal reprogramming. So, my question is how...
0
by: Herman Jones | last post by:
I'm getting the following error when I build a Class Library project: Embedding manifest... Project : error PRJ0002 : Error result 1 returned from 'C:\WINDOWS\system32\cmd.exe'. It happens with...
1
by: Zoe Hart | last post by:
Prior to VS2005 I configured my applications via the appSettings section of the app.config file. When I developed a class library, I used ConfigurationManager.AppSettings(settingName) syntax and...
3
by: Martyn Fewtrell | last post by:
Hi there. First of all let me apologise for this is a somewhat general question to which I would be interested in any opinions. As far as I can see when I create a web application the...
6
by: TS | last post by:
I cannot get this to work. I added an app.config to a project i reference from my web application project (vs 05) but can see no way to access the settings within it. the other thing is that I...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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,...

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.