![]() |
|
|
|
#1 |
|
This is a stupid question but I risk it.
Just in case something is possible... How can I modify the web.config settings from ASP.NET programming? <system.net> <mailSettings> <smtp from=""> <network host="link.geogio.com" password="password" userName="username" /> </smtp> </mailSettings> </system.net> 3471Jack329 |
|
|
|
|
#2 |
|
Posts: n/a
|
Just note that modifying the web.config will cause your application to
restart. -- Eliyahu Goldin, Software Developer & Consultant Microsoft MVP [ASP.NET] "3471Jack329" <> wrote in message news:6IdPg.5313$P%.... > This is a stupid question but I risk it. > > Just in case something is possible... > > How can I modify the web.config settings from ASP.NET programming? > > <system.net> > <mailSettings> > <smtp from=""> > <network host="link.geogio.com" password="password" > userName="username" /> > </smtp> > </mailSettings> > </system.net> > > Eliyahu Goldin |
|
|
|
#3 |
|
Posts: n/a
|
You can't, because the file is locked. You can do it outside the web, but,
as mentioned by Eliyahu, it will restart your application, booting off all live sessions. In .NET 2.0, you can make additional "config" files that are linked from the web.config and do it that way. Or, you can create your own configuration "handler" and do whatever you wish. -- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA ************************************************* Think outside of the box! ************************************************* "3471Jack329" <> wrote in message news:6IdPg.5313$P%.... > This is a stupid question but I risk it. > > Just in case something is possible... > > How can I modify the web.config settings from ASP.NET programming? > > <system.net> > <mailSettings> > <smtp from=""> > <network host="link.geogio.com" password="password" > userName="username" /> > </smtp> > </mailSettings> > </system.net> > > Cowboy \(Gregory A. Beamer\) |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SONY DVD RW DW-G120A SOMETIMES FAILS...... | atlantic965 | DVD Video | 0 | 06-18-2006 10:36 PM |
| problems backing up dvds | Lawrence Traub | DVD Video | 11 | 09-27-2005 07:34 PM |
| Re: Ripping DVDs. Please answer the attached question. - Question.txt | Stan Brown | DVD Video | 19 | 02-09-2005 11:19 PM |
| Burn process failed - help! Log file posted for help troubleshooting | Michael Mason | DVD Video | 1 | 08-16-2004 09:24 PM |
| Pioneer A05 Problems | Bill Stock | DVD Video | 8 | 11-28-2003 05:03 AM |