J
Jeff
Hey
ASP.NET 2.0
I'm working on a web site and I want info about the domain stored in
web.config. By domain I mean for example: www.domain.com
The reason I want info about the domain stored is that the web site will
send email to it's registered users. This email will contain a link to a web
page on the web site. If I don't know the domain then I must hard code it...
When developing I can set the domain to localhost and on the final version I
set to www.domain.com (where www.domain.com is just an example) . But I
don't like the idea of hard coding this info.. I would like to change it
without the need for hard coding
So I'm wondering what setting in web.config can I use to store this info? or
do I need to use a custom setting?
Any suggestions?
Jeff
ASP.NET 2.0
I'm working on a web site and I want info about the domain stored in
web.config. By domain I mean for example: www.domain.com
The reason I want info about the domain stored is that the web site will
send email to it's registered users. This email will contain a link to a web
page on the web site. If I don't know the domain then I must hard code it...
When developing I can set the domain to localhost and on the final version I
set to www.domain.com (where www.domain.com is just an example) . But I
don't like the idea of hard coding this info.. I would like to change it
without the need for hard coding
So I'm wondering what setting in web.config can I use to store this info? or
do I need to use a custom setting?
Any suggestions?
Jeff