How to create instance of a class only once in asp.net
<p>A instance of a class is created in the partial class of an aspx page.Under page_load or button click method I'm trying to set the value to the class. but when each postback takes place new instance is created and I'm losing the previous value.             </p>

<pre><code>public partial class DatabaseSelection : System.Web.UI.Page
     {
        DBProperties dbpro;
        Metadata obmeta;      

    protected void Page_Load(object sender, EventArgs e)

        {
            if (!IsPostBack)
            {
               dbpro = new DBProperties();

            }  
</code></pre>
