Click here to Skip to main content
15,884,176 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionValidators gives error on remote server Pin
needhi_p30-Apr-08 19:30
needhi_p30-Apr-08 19:30 
AnswerRe: Validators gives error on remote server Pin
Unknown Ajanabi30-Apr-08 21:07
Unknown Ajanabi30-Apr-08 21:07 
AnswerRe: Validators gives error on remote server Pin
Ashish Sehajpal1-May-08 1:17
Ashish Sehajpal1-May-08 1:17 
QuestionIs connection string must be changed after deployment ??? Pin
kindman_nb30-Apr-08 19:01
kindman_nb30-Apr-08 19:01 
AnswerRe: Is connection string must be changed after deployment ??? Pin
Christian Graus30-Apr-08 19:13
protectorChristian Graus30-Apr-08 19:13 
GeneralRe: Is connection string must be changed after deployment ??? Pin
kindman_nb30-Apr-08 19:15
kindman_nb30-Apr-08 19:15 
AnswerRe: Is connection string must be changed after deployment ??? Pin
Ashish Sehajpal1-May-08 1:19
Ashish Sehajpal1-May-08 1:19 
AnswerRe: Is connection string must be changed after deployment ??? Pin
Tom Harper3-May-08 10:36
Tom Harper3-May-08 10:36 
I have a trick for this situation

I keep three connection strings in my web.config file. The first connection string is named app_name_local, the second is app_name_server and finally app_name_application. For example if you have an application Foo you would have Foo_local, Foo_server, and Foo_application.

I make all connections in the application to the app_name_application string. This makes it simple to manage. You never have to make a change to the connection string name anywhere in the application.

I also keep copies of the server string and the local string in the other connection strings. When I upload the web.config file to the server, the only change I need to make is to the application connection string by copying the string from the server cs to the application cs. This way, I can keep local data to code with and not affect real data on the server.

I hope this helps.

Tom
GeneralRe: Is connection string must be changed after deployment ??? Pin
kindman_nb4-May-08 21:08
kindman_nb4-May-08 21:08 
QuestionHow to add dynamic coulmn in Gridview & its value.? Pin
GroCareer30-Apr-08 17:36
GroCareer30-Apr-08 17:36 
AnswerRe: How to add dynamic coulmn in Gridview & its value.? Pin
Christian Graus30-Apr-08 18:15
protectorChristian Graus30-Apr-08 18:15 
GeneralRe: How to add dynamic coulmn in Gridview & its value.? Pin
GroCareer30-Apr-08 18:19
GroCareer30-Apr-08 18:19 
GeneralRe: How to add dynamic coulmn in Gridview & its value.? Pin
Christian Graus30-Apr-08 18:41
protectorChristian Graus30-Apr-08 18:41 
AnswerRe: How to add dynamic coulmn in Gridview & its value.? Pin
Harini N K30-Apr-08 19:33
Harini N K30-Apr-08 19:33 
QuestionProblem in connection with sql server 2005 from vs2005 Pin
Dyuri30-Apr-08 17:22
Dyuri30-Apr-08 17:22 
AnswerRe: Problem in connection with sql server 2005 from vs2005 Pin
Christian Graus30-Apr-08 17:32
protectorChristian Graus30-Apr-08 17:32 
QuestionLearning ASP.Net Pin
jds120730-Apr-08 15:50
jds120730-Apr-08 15:50 
AnswerRe: Learning ASP.Net Pin
AlexeiXX330-Apr-08 16:19
AlexeiXX330-Apr-08 16:19 
AnswerRe: Learning ASP.Net Pin
Tad McClellan30-Apr-08 17:09
professionalTad McClellan30-Apr-08 17:09 
AnswerRe: Learning ASP.Net Pin
Christian Graus30-Apr-08 17:31
protectorChristian Graus30-Apr-08 17:31 
AnswerRe: Learning ASP.Net Pin
Vasudevan Deepak Kumar2-May-08 2:02
Vasudevan Deepak Kumar2-May-08 2:02 
QuestionAJAX server control not throwing events Pin
Tad McClellan30-Apr-08 12:38
professionalTad McClellan30-Apr-08 12:38 
QuestionCrystal Report Pin
sabaMCA30-Apr-08 10:52
sabaMCA30-Apr-08 10:52 
QuestionHow to catch page not found error when redirecting Pin
DotNetXenon30-Apr-08 8:42
DotNetXenon30-Apr-08 8:42 
AnswerRe: How to catch page not found error when redirecting Pin
Blue_Boy30-Apr-08 10:31
Blue_Boy30-Apr-08 10:31 

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.