Aber sicher:
#if DEBUG
connectionString =
WebConfigurationManager.AppSettings["debugConnection"];
#else
connectionString =
WebConfigurationManager.AppSettings["releaseConnection"];
#endif
Gruß
Steffen Richter
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im
Auftrag von Tobias Koch
Gesendet: Freitag, 17. Februar 2006 13:22
An: [email protected]
Betreff: [Asp.net] Code abhängig von Debug/Release[Scanned]
Hallo Liste,
kann man in Visual Studio 2003 (ASP.NET) bestimmte Codeteile abhängig von
Debug/Release ausführen lassen bzw. abfragen, ob die dll gerade eine
Debugkompilierung ist?
z.B.
If debug then
label.innerhtml = projectpath
End if
Gruß
Tobias
_______________________________________________
Asp.net Mailingliste, Postings senden an:
[email protected]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/asp.net
_______________________________________________
Asp.net Mailingliste, Postings senden an:
[email protected]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/asp.net