re:
!> OTOH, you might consider separating your data access from your pages. The
!> need to reference SQL Server from so many pages may be considered a mild hint.
Indeed...
Whenever I need to do data access, I compile an assembly which I can reference in any page.
Doing that makes code much more manageable.
;-)
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
>> re:
>> !> Is there way in the web.config file to add a setting which will tell
[quoted text clipped - 4 lines]
>> The namespaces element defines a collection of import directives to use during assembly
>> pre-compilation. This attribute corresponds to the @ Import directive on an ASP.NET page.
> OTOH, you might consider separating your data access from your pages. The need to reference SQL
> Server from so many pages may be considered a mild hint.
Yes, John, isn't that the beauty of programming, you have choices in the way
_you_ want to do things. And neither is "right" or "wrong", it's whatever
works for _you_ and your client.
I asked a simple question, thanks for the answer I was looking Juan.
>> re:
>> !> Is there way in the web.config file to add a setting which will tell
[quoted text clipped - 11 lines]
> need to reference SQL Server from so many pages may be considered a mild
> hint.
Juan T. Llibre - 07 Jun 2007 15:17 GMT
re:
> thanks for the answer I was looking Juan
You're quite welcome, Brian.
As it happened, just last week I had to research that,
so the timing on your question was impeccable.
;-)
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
> Yes, John, isn't that the beauty of programming, you have choices in the way _you_ want to do
> things. And neither is "right" or "wrong", it's whatever works for _you_ and your client.
>
> I asked a simple question, thanks for the answer I was looking Juan.
>>> re:
>>> !> Is there way in the web.config file to add a setting which will tell
[quoted text clipped - 8 lines]
>> OTOH, you might consider separating your data access from your pages. The need to reference SQL
>> Server from so many pages may be considered a mild hint.
Samuel R. Neff - 07 Jun 2007 18:11 GMT
Yes there are choices, but most certainly there are some wrong
choices.
Unless you're talking about a one-time-use prototype that you're going
to throw away in a week, I'd agree with John that the db code should
be separate from the aspx code.
Sam
------------------------------------------------------------
We're hiring! B-Line Medical is seeking .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.
>Yes, John, isn't that the beauty of programming, you have choices in the way
>_you_ want to do things. And neither is "right" or "wrong", it's whatever
[quoted text clipped - 17 lines]
>> need to reference SQL Server from so many pages may be considered a mild
>> hint.
Brian Simmons - 08 Jun 2007 14:41 GMT
> Yes there are choices, but most certainly there are some wrong
> choices.
Your opinion Sam and let's leave it at that.
I asked a simple question, got my answer, and am moving on.
> Yes there are choices, but most certainly there are some wrong
> choices.
[quoted text clipped - 34 lines]
>>> need to reference SQL Server from so many pages may be considered a mild
>>> hint.