captchacode in asp.net?
<p>i write the code for captcha from the website, but when i run the code it is working fine captcha image is coming but i place the textbox and a button but they are not visible only capctch image is displaying this is code check out</p>

<p>source code</p>

<pre><code>&lt;body&gt;
&lt;form id="form1" runat="server"&gt;

&lt;IMG height="30" alt="" src="Turing.aspx"  style="width :120px;height:60px" /&gt;&lt;br /&gt;
    &lt;br /&gt;

    &lt;asp:TextBox ID="TextBox1" runat="server" Visible ="true" &gt;&lt;/asp:TextBox&gt;&lt;br /&gt;
    &lt;asp:Button ID="Button1" runat="server" Text="Button"  Visible ="true" /&gt;
&lt;/form&gt;
&lt;/body&gt;
</code></pre>

<p>Code behind:</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
{

    getImage();
}

private void getImage()
{
    Bitmap objBMP = new System.Drawing.Bitmap(150,60);
    Graphics objGraphics = System.Drawing.Graphics.FromImage(objBMP);
    objGraphics.Clear(Color.IndianRed );
    objGraphics.TextRenderingHint = TextRenderingHint.AntiAlias;
    Font objFont = new Font("Arial", 25, FontStyle.Italic );
    string randomStr = "";
    int[] myIntArray = new int[5];
    int x;
    Random autoRand = new Random();

    for (x = 0; x &lt; 5; x++)
    {
        myIntArray[x] = System.Convert.ToInt32(autoRand.Next(0, 9));
        randomStr += (myIntArray[x].ToString());
    }

    Session.Add("randomStr", randomStr);

    objGraphics.DrawString(randomStr, objFont, Brushes.NavajoWhite, 3, 3);
    Response.ContentType = "image/GIF";
    objBMP.Save(Response.OutputStream, ImageFormat.Gif);
    objFont.Dispose();
    objGraphics.Dispose();
    objBMP.Dispose();
}

protected void Button1_Click(object sender, EventArgs e)
{
    if (Session["randomStr"].ToString()==TextBox1 .Text .ToString ())
    {
        Response.Write("yes ok");
    }
    else
    {
        Response.Write("Not Inserted");
    }
}
</code></pre>

<p>but button and textbox is not visible when page executed</p>
