I'd like to accomplish the following in a class, NOT the web.config: thanks