Click here to Skip to main content
15,914,500 members
Home / Discussions / C#
   

C#

 
GeneralRe: How do I get user's local time . I am using asp.net ,C# Pin
mdpavel5-Jan-09 18:00
mdpavel5-Jan-09 18:00 
GeneralRe: How do I get user's local time . I am using asp.net ,C# Pin
Christian Graus5-Jan-09 18:17
protectorChristian Graus5-Jan-09 18:17 
GeneralRe: How do I get user's local time . I am using asp.net ,C# Pin
mdpavel5-Jan-09 18:41
mdpavel5-Jan-09 18:41 
GeneralRe: How do I get user's local time . I am using asp.net ,C# Pin
Dave Kreskowiak5-Jan-09 18:49
mveDave Kreskowiak5-Jan-09 18:49 
GeneralRe: How do I get user's local time . I am using asp.net ,C# Pin
dan!sh 5-Jan-09 19:21
professional dan!sh 5-Jan-09 19:21 
GeneralRe: How do I get user's local time . I am using asp.net ,C# Pin
Tom Deketelaere5-Jan-09 22:57
professionalTom Deketelaere5-Jan-09 22:57 
GeneralRe: How do I get user's local time . I am using asp.net ,C# Pin
Guffa5-Jan-09 20:06
Guffa5-Jan-09 20:06 
Questiondll and app config - need to cut/paste everytime...? [modified] Pin
devvvy5-Jan-09 15:53
devvvy5-Jan-09 15:53 
lets say i have a dll which relies on nhibernate or log4net. And within this dll there're calls which references these external library (nhibernate/log4net .. etc).

To be specific, and as an example I may have a config file look like this:


<configuration>
<configsections>
<sectiongroup name="spring">
<section name="context">
type ="Spring.Context.Support.ContextHandler, Spring.Core"/&gt;
<section name="objects">
type="Spring.Context.Support.DefaultSectionHandler, Spring.Core" /&gt;
</section></section></sectiongroup>
<section name="nhibernate">
type="System.Configuration.NameValueSectionHandler, System,
Version=1.0.5000.0,Culture=neutral,
PublicKeyToken=b77a5c561934e089" /&gt;
<section name="log4net">
type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" /&gt;
</section></section></configsections>
<spring>
<context><resource uri="config://spring/objects" /></context>
<objects>

</objects>
</spring>
<nhibernate>
... nhibernate config ...
</nhibernate>

<log4net>
... log4net config ...
</log4net>
</configuration>

Now where should I put app config for log4net or nhibernate. In the application's app.config or in dll's app.config?

I want avoid having to copy config setting when I reference my DLL from a console app this time, then next time to a ASPNET or WebService. Each time having to merge/cut/paste app.config (from Dll) seems like a waste of time.

Thanks

dev
modified on Thursday, January 8, 2009 8:50 AM
AnswerRe: Simple question on dll and app config Pin
Mycroft Holmes5-Jan-09 16:11
professionalMycroft Holmes5-Jan-09 16:11 
GeneralRe: Simple question on dll and app config Pin
devvvy5-Jan-09 16:18
devvvy5-Jan-09 16:18 
QuestionI Need a math formula for this issue. Pin
Silvyster5-Jan-09 15:01
Silvyster5-Jan-09 15:01 
GeneralRe: I Need a math formula for this issue. Pin
Luc Pattyn5-Jan-09 15:21
sitebuilderLuc Pattyn5-Jan-09 15:21 
GeneralRe: I Need a math formula for this issue. Pin
_Maxxx_5-Jan-09 17:40
professional_Maxxx_5-Jan-09 17:40 
GeneralRe: I Need a math formula for this issue. Pin
Dewald5-Jan-09 20:38
Dewald5-Jan-09 20:38 
QuestionRead special caractors in XML Pin
Dushan1235-Jan-09 13:48
Dushan1235-Jan-09 13:48 
AnswerRe: Read special caractors in XML Pin
PIEBALDconsult5-Jan-09 16:20
mvePIEBALDconsult5-Jan-09 16:20 
GeneralRe: Read special caractors in XML Pin
Dushan1235-Jan-09 17:27
Dushan1235-Jan-09 17:27 
AnswerRe: Read special caractors in XML Pin
Guffa5-Jan-09 21:28
Guffa5-Jan-09 21:28 
QuestionDispose method calls itself for no reason Pin
mirko865-Jan-09 11:35
mirko865-Jan-09 11:35 
AnswerRe: Dispose method calls itself for no reason Pin
MidwestLimey5-Jan-09 11:50
professionalMidwestLimey5-Jan-09 11:50 
GeneralRe: Dispose method calls itself for no reason Pin
mirko865-Jan-09 12:08
mirko865-Jan-09 12:08 
GeneralRe: Dispose method calls itself for no reason Pin
Luc Pattyn5-Jan-09 12:55
sitebuilderLuc Pattyn5-Jan-09 12:55 
GeneralRe: Dispose method calls itself for no reason Pin
mirko865-Jan-09 13:13
mirko865-Jan-09 13:13 
GeneralRe: Dispose method calls itself for no reason Pin
mirko865-Jan-09 13:26
mirko865-Jan-09 13:26 
GeneralRe: Dispose method calls itself for no reason Pin
Luc Pattyn5-Jan-09 13:44
sitebuilderLuc Pattyn5-Jan-09 13:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.