I am regular programmer in traditional ASP, but now turning to program in ASP.NET 3.5. My requirement is defining few constants about 20 of them of different types:
Strings, integers, datetime etc. In traditional ASP, I used to define them in a single file
Example abc.asp
In each application file, I used to include the abc.asp file as
<!--#include file="nsns5DBCONN.asp"-->
and use the constants.
Dim dtdldate,inthseries, strvenue
dtdldate= #6-5-2010 4:00:00 PM#
inthseries=8000
strvenue=âzzzzzzzzzâ
I want to do the same in ASP.NET 3.5. I created a file myconstants.cs
In App_code folder.
public class myconstants
{
public myconstants()
{
}
}
Please let me know how proceed from now.
I want to know how to define the above 3 different types of constants
And how to use them in individual application aspx files. I want the code in both C# and
VB.