want to send same random number to user's mail that are stored in database
<p>I'm developing a web application in which I have one Inquiry form and in that form I'm generating one random number and storing it in the database. My code looks like</p>

<pre><code> clsInquiry objInquiry = new clsInquiry();
    try
    {   

        cn.Open();

        objInquiry.RandomStr = GetUniqueKey(10);


        MailMessage mail = new MailMessage();
        mail.From = new MailAddress("abc@gmail.com");
        mail.To.Add(txt_eid.Text);

        mail.Body += "Thank u for putting inquiry for " + productName + " ;&lt;br&gt;&lt;br&gt;";
        mail.Body += "Please Click on Following Link To Download Your Demo" + "&lt;br&gt;&lt;br&gt;";

        mail.Body += "&lt;a href=\"http://www.xyz.co.in/Download.aspx?No='" + GetUniqueKey(10) + "'\"&gt;Demo Download&lt;/a&gt;";
        //mail.Body += "&lt;a href=\"" + MyUrl + "\"&gt;Demo Download&lt;/a&gt;";
        SmtpClient smtp = new SmtpClient();
        smtp.Host = "smtp.gmail.com";
        smtp.Port = 587;
        smtp.EnableSsl = true;
        smtp.Credentials = new System.Net.NetworkCredential("abc@gmail.com ", "****");
        smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
        smtp.Send(mail);

    }
    catch (Exception ex)
    {
        ex.ToString();
    }
</code></pre>

<p>and function for random Number.....   </p>

<pre><code>public static string GetUniqueKey(int maxSize)
{
   //code for it

}
</code></pre>

<p>and I have successfully generated and stored the number in the database ..</p>

<p>but in the <code>url</code> of the <code>hyperlink</code> in <code>mail.body</code> that I've called random number function to send to user, different random number is generated .. I want the same random number in both places.what should I do ?</p>
