Click here to Skip to main content
15,920,030 members
Home / Discussions / C#
   

C#

 
GeneralRe: help convert a line of code Pin
User 96257820-Apr-04 9:53
User 96257820-Apr-04 9:53 
GeneralRe: help convert a line of code Pin
Roman Rodov20-Apr-04 14:52
Roman Rodov20-Apr-04 14:52 
GeneralRe: help convert a line of code Pin
User 96257820-Apr-04 15:38
User 96257820-Apr-04 15:38 
GeneralWebconfig question Pin
dabuskol19-Apr-04 19:17
dabuskol19-Apr-04 19:17 
GeneralRe: Webconfig question Pin
Mazdak19-Apr-04 19:57
Mazdak19-Apr-04 19:57 
GeneralRe: Webconfig question Pin
dabuskol19-Apr-04 21:40
dabuskol19-Apr-04 21:40 
GeneralRe: Webconfig question Pin
Mazdak19-Apr-04 21:55
Mazdak19-Apr-04 21:55 
GeneralRe: Webconfig question Pin
Heath Stewart20-Apr-04 5:09
protectorHeath Stewart20-Apr-04 5:09 
If you plan on deploying this solution to machines using an installation project like a Windows Installer package (which VS.NET includes a basic Windows Installer project for doing just that), you could create your own Installer class that reads-in the Web.config file and changes the values in it based on the target machine, which it then saves back out to disk.

One more idea is to modify the Application_Start handler in the Global.asax file (or its code-behind file) that gets the machine name and conditionally updates the Web.config file, which will cause the web application to restart and your settings should be correct.

Otherwise, Mazdak's right. You'll just have to manage your project in a different manner using different build configurations or making the change after you move it.

 

Microsoft MVP, Visual C#
My Articles
Questionshowing dialog with topLevel ? Pin
azusakt19-Apr-04 17:45
azusakt19-Apr-04 17:45 
AnswerRe: showing dialog with topLevel ? Pin
LongRange.Shooter20-Apr-04 2:35
LongRange.Shooter20-Apr-04 2:35 
AnswerRe: showing dialog with topLevel ? Pin
Heath Stewart20-Apr-04 5:05
protectorHeath Stewart20-Apr-04 5:05 
GeneralRe: showing dialog with topLevel ? Pin
azusakt20-Apr-04 16:31
azusakt20-Apr-04 16:31 
GeneralRe: showing dialog with topLevel ? Pin
Heath Stewart21-Apr-04 3:04
protectorHeath Stewart21-Apr-04 3:04 
GeneralMDI Child Form Drag Without Toolbar Pin
Cyric7419-Apr-04 16:34
Cyric7419-Apr-04 16:34 
GeneralRe: MDI Child Form Drag Without Toolbar Pin
Heath Stewart20-Apr-04 5:02
protectorHeath Stewart20-Apr-04 5:02 
QuestionCombining serialization of collection and internal data? Pin
Anonymous19-Apr-04 16:25
Anonymous19-Apr-04 16:25 
AnswerRe: Combining serialization of collection and internal data? Pin
Heath Stewart20-Apr-04 4:56
protectorHeath Stewart20-Apr-04 4:56 
GeneralWindows Messages Pin
T i T i19-Apr-04 14:22
T i T i19-Apr-04 14:22 
GeneralRe: Windows Messages Pin
Roman Rodov19-Apr-04 14:57
Roman Rodov19-Apr-04 14:57 
GeneralC# #define macro equivalent. Pin
HAHAHA_NEXT19-Apr-04 11:47
HAHAHA_NEXT19-Apr-04 11:47 
GeneralRe: C# #define macro equivalent. Pin
Mikko Puonti19-Apr-04 13:01
Mikko Puonti19-Apr-04 13:01 
GeneralRe: C# #define macro equivalent. Pin
HAHAHA_NEXT20-Apr-04 6:31
HAHAHA_NEXT20-Apr-04 6:31 
GeneralRe: C# #define macro equivalent. Pin
leppie20-Apr-04 7:05
leppie20-Apr-04 7:05 
GeneralRedraw scrollbars of TreeView Pin
Jean Bédard19-Apr-04 9:54
Jean Bédard19-Apr-04 9:54 
GeneralThreadPool Class Pin
Spiros19-Apr-04 8:58
Spiros19-Apr-04 8:58 

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.