Hybrid Control Asp.net
<p>Iam creating a hybrid control with adding html control dynamically in login.cs file</p>

<p>code for <code>login.cs</code></p>

<pre><code>namespace WebApplication6
{
    public class LoginStandards: CompositeControl
    {
        private TextBox txtusername;
        private TextBox txtpassword;
    public string UserName
    {
        get
        {
            EnsureChildControls();
            return txtusername.Text;
        }
        set
        {
            EnsureChildControls();
            txtpassword.Text = value;
        }
    }

    public string Password
    {
        get
        {
            EnsureChildControls();
            return txtpassword.Text;
        }
        set
        {
            EnsureChildControls();
            txtpassword.Text = value;
        }
    }

    protected override void CreateChildControls()
    {
        txtusername = new TextBox();
        txtusername.ID = "txtusername";
        this.Controls.Add(txtusername);

        txtpassword = new TextBox();
        txtpassword.ID = "txtPassword";
        txtpassword.TextMode = TextBoxMode.Password;
        this.Controls.Add(txtpassword);
    }

    protected override void RenderContents(HtmlTextWriter writer)
    {
        writer.AddStyleAttribute("float", "left");
        writer.RenderBeginTag(HtmlTextWriterTag.Div);
        writer.AddStyleAttribute(HtmlTextWriterStyle.Padding, "3px");
        writer.RenderBeginTag(HtmlTextWriterTag.Div);
        writer.AddAttribute(HtmlTextWriterAttribute.For, txtusername.ClientID);
        writer.RenderBeginTag(HtmlTextWriterTag.Label);
        writer.Write("User Name:");
        writer.RenderEndTag();
        writer.RenderEndTag();

        writer.AddStyleAttribute(HtmlTextWriterStyle.Padding, "3px");
        writer.RenderBeginTag(HtmlTextWriterTag.Div);
        writer.AddAttribute(HtmlTextWriterAttribute.For, txtpassword.ClientID);
        writer.RenderBeginTag(HtmlTextWriterTag.Label);
        writer.Write("Password:");
        writer.RenderEndTag();
        writer.RenderEndTag();
        writer.RenderEndTag();

        writer.AddStyleAttribute("float", "left");
        writer.RenderBeginTag(HtmlTextWriterTag.Div);
        writer.AddStyleAttribute(HtmlTextWriterStyle.Padding, "3px");
        writer.RenderBeginTag(HtmlTextWriterTag.Div);
        txtusername.RenderControl(writer);
        writer.RenderEndTag();

        writer.AddStyleAttribute(HtmlTextWriterStyle.Padding, "3px");
        writer.RenderBeginTag(HtmlTextWriterTag.Div);
        txtpassword.RenderControl(writer);
        writer.RenderEndTag();
        writer.RenderEndTag();
        writer.Write("&lt;br style=’clear:left’ /&gt;");
    }

        protected override HtmlTextWriterTag TagKey
        {
            get
                {
                return HtmlTextWriterTag.Div;
                }
            }
}
}
</code></pre>

<p>i want to use this cs file in normal .aspx page.. i did by creating a object.. but it doesnt work.. 
how to call login.cs file in .aspx page.Any help would be appreciated</p>
