Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Move code to web.config

Status
Not open for further replies.

Palooka

Programmer
May 22, 2001
73
NO
Hi,

I currently have a class that extends from [tt]System.Web.Services.Protocols.SoapHttpClientProtocol[/tt] where I set the Timeout property:
Code:
public class foobar : System.Web.Services.Protocols.SoapHttpClientProtocol {
  public foobar() {
    this.Timeout = 10000;
  }
  ...
}

I would really like to adjust this property from the [tt]web.config[/tt] file. Does anyone know if that is possible? If it is, I would appreciate the correct syntax (all the way from the root <configuration>), because I've tried a gazillion possibilities here without luck.

Best regards,
Palooka
 
Can't you just put it in the appsettings section of the web.config and use a AppSettingsReader to get it's value?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top