Hi there,
If you have a Web Site Project, you can define them in a class inside the App_Code folder. For a Web Application Project, you can place a code file pretty much anywhere (except in App_Code). Then you can define the values in a class like this:
Code:
public class Constants
{
public const double Whatever = 4.1;
}
You can then access the value using Constants.Whatever. You may also need to add a using statement for the namespace of the Constants class.
Hope this helps,
Imar