Click here to Skip to main content
15,897,187 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: HTML page inside tablecell.. Pin
iamrashida8319-Nov-06 1:14
iamrashida8319-Nov-06 1:14 
QuestionError sending mails Pin
abulhassan_shock17-Nov-06 22:42
abulhassan_shock17-Nov-06 22:42 
AnswerRe: Error sending mails Pin
coolestCoder18-Nov-06 22:34
coolestCoder18-Nov-06 22:34 
Questionjavascript........... Pin
hai2muru17-Nov-06 20:46
hai2muru17-Nov-06 20:46 
AnswerRe: javascript........... Pin
Guffa18-Nov-06 1:33
Guffa18-Nov-06 1:33 
Questionhow to fix Accordion problem ??? Pin
amin_behzadi17-Nov-06 20:45
professionalamin_behzadi17-Nov-06 20:45 
AnswerRe: how to fix Accordion problem ??? Pin
ayeleteric19-Nov-06 1:18
ayeleteric19-Nov-06 1:18 
QuestionEditing web.config while deploying Pin
Nicejith17-Nov-06 20:20
Nicejith17-Nov-06 20:20 
Hi,

While deploying a web application i have to set the new connection string in the web.config file.

The code i used is given below
------
try
{
Configuration config = WebConfigurationManager.OpenWebConfiguration(HttpContext.Current.Request.ApplicationPath);
AppSettingsSection section = (AppSettingsSection)config.GetSection ("appSettings");
section.Settings["conString"].Value = str; // connection string
WebConfigurationManager.OpenWebConfiguration(HttpContext.Current.Request.ApplicationPath);
config.Save(ConfigurationSaveMode.Modified);
}
catch (Exception ex)
{
}


--------------------------
When i'm executing the code in the visual studio framework , it works fine. When the web.config is changed, save confirmation message appears there.

But when deploying, the web.config file is not get updated permanently.
As there is no error in the code no exception arises there.

Any help w'l be appreciated.
Thanks in advance.



Regards
Nicejith
QuestionHow to add Color Dialog in the asp.net page? Pin
param thaker17-Nov-06 20:13
param thaker17-Nov-06 20:13 
QuestionDirectory Uploading Pin
sukhchain singh17-Nov-06 19:50
sukhchain singh17-Nov-06 19:50 
QuestionHelp About FTP Pin
Deepak the Cool17-Nov-06 19:38
Deepak the Cool17-Nov-06 19:38 
AnswerRe: Help About FTP Pin
Nicejith17-Nov-06 21:16
Nicejith17-Nov-06 21:16 
QuestionApplication_Error in global.asax [modified] Pin
Nagraj Naik17-Nov-06 18:49
Nagraj Naik17-Nov-06 18:49 
QuestionCheckBox with GridView Pin
Gamzun17-Nov-06 18:47
Gamzun17-Nov-06 18:47 
AnswerRe: CheckBox with GridView Pin
dj.rock17-Nov-06 21:49
dj.rock17-Nov-06 21:49 
QuestionHow to find a average Sales Pin
JVVS17-Nov-06 18:48
JVVS17-Nov-06 18:48 
AnswerRe: How to find a average Sales Pin
WillemM18-Nov-06 8:08
WillemM18-Nov-06 8:08 
Questionhow to create reports in asp.net 2003. Pin
monuSaini17-Nov-06 18:29
monuSaini17-Nov-06 18:29 
Generalvgdsz Pin
mahili17-Nov-06 18:14
mahili17-Nov-06 18:14 
GeneralRe: vgdsz Pin
Suresh Pirsquare17-Nov-06 18:21
Suresh Pirsquare17-Nov-06 18:21 
QuestionInsert Row in Database Pin
monika_vasvani17-Nov-06 16:24
monika_vasvani17-Nov-06 16:24 
AnswerRe: Insert Row in Database Pin
Gamzun18-Nov-06 3:48
Gamzun18-Nov-06 3:48 
GeneralRe: Insert Row in Database Pin
indianet19-Nov-06 11:41
indianet19-Nov-06 11:41 
QuestionControlling POST action in ASP.NET v. 1.1 ? Pin
GregStevensCA17-Nov-06 12:58
GregStevensCA17-Nov-06 12:58 
AnswerRe: Controlling POST action in ASP.NET v. 1.1 ? Pin
indianet17-Nov-06 13:28
indianet17-Nov-06 13:28 

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.