Toolbox objects not recognized in .cs file
<p>I am new in asp. I have build a website using asp. I build the templete using Artisteer.
Everything works fine untill the time I was trying to make a login page. I'll give parts of my code not to bother a lot</p>

<p>Here is one part of my Registration.aspx page</p>

<pre><code>&lt;@ Page Language="C#" MasterPageFile="~/design/MasterPage.master" AutoEventWireup="true"
 CodeFile="Registration.aspx.cs" Inherits="Registration" %&gt;

&lt;@ Import Namespace="Artisteer" %&gt;

&lt;@ Register TagPrefix="artisteer" Namespace="Artisteer" %&gt;

&lt;@ Register TagPrefix="art" TagName="DefaultMenu" Src="DefaultMenu.ascx" %&gt; 

&lt;@ Register TagPrefix="art" TagName="DefaultHeader" Src="DefaultHeader.ascx" %&gt; 

&lt;@ Register TagPrefix="art" TagName="DefaultSidebar1" Src="DefaultSidebar1.ascx" %&gt;


asp:Content ID="PageTitle" ContentPlaceHolderID="TitleContentPlaceHolder" Runat="Server"&gt;Once Upon a Cake&lt;/asp:Content&gt;

asp:Content ID="MenuContent" ContentPlaceHolderID="MenuContentPlaceHolder" Runat="Server"&gt;
    &lt;art:DefaultMenu ID="DefaultMenuContent" runat="server" /&gt;
&lt;/asp:Content&gt;

asp:Content ID="HeaderContent" ContentPlaceHolderID="HeaderContentPlaceHolder" Runat="Server"&gt;

art:DefaultHeader ID="DefaultHeader" runat="server" /&gt;
&lt;/asp:Content&gt;

asp:Content ID="SideBar1" ContentPlaceHolderID="Sidebar1ContentPlaceHolder" Runat="Server"&gt;
art:DefaultSidebar1 ID="DefaultSidebar1Content" runat="server" /&gt;
&lt;/asp:Content&gt;

&lt;asp:Content ID="SheetContent" ContentPlaceHolderID="SheetContentPlaceHolder" Runat="Server"&gt;


    &lt;artisteer:article ID="Article2" runat="server"&gt;&lt;ContentTemplate&gt;

       &lt;br /&gt;

        &lt;table class="art-article" border="0" cellspacing="0" cellpadding="0"&gt;
      &lt;tbody&gt;
        &lt;tr&gt;
          &lt;td&gt;Name&lt;/td&gt;
          &lt;td&gt;User Name&lt;/td&gt;
          &lt;td&gt;&lt;asp:TextBox ID="textBoxUser" runat="server" Width="240" MaxLength="15" &gt;&lt;/asp:TextBox&gt;
            &lt;/td&gt;
          &lt;td&gt;
          &lt;td&gt;
</code></pre>

<p>..........</p>

<p>and the Registration.aspx.cs file is</p>

<pre><code>using System;

using System.Collections.Generic;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Data.SqlClient;

using System.Configuration;


public partial class Registration : System.Web.UI.Page

{

    protected void Page_Load(object sender, EventArgs e)
    {

        if (IsPostBack)
        {

            SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["RegConnectionString"].ConnectionString);
            con.Open();
            string cmdStr = "Select coun (*) from Register where UserName='" + textBoxUser.Text + "'";
            SqlCommand userExist = new SqlCommand(cmdStr, con);
            int temp = Convert.ToInt32(userExist.ExecuteScalar().ToString());
            if (temp == 1)
            {
                Response.Write("User Name already Exist!!! &lt;/br&gt; Choose another");
            }
        }


    }
</code></pre>

<p>The problem is that textBoxUser is not recognized in .cs file.
Does anyone have any idea?</p>
