467,923 Members | 1,434 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,923 developers. It's quick & easy.

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
  • viewed: 1868
Share:
2 Replies
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Tony Jones | last post: by
16 posts views Thread by Timm | last post: by
reply views Thread by Herman Jones | last post: by
1 post views Thread by Zoe Hart | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.