try this:
.aspx.cs page:
protected void Button1_Click(object sender, EventArgs e)
{
if (TextBox1.Text.ToUpper().Equals("TEXT1"))
{
Response.Redirect(url);
}
else
{
TextBox1.Text = "";
TextBox1.Focus();
}
}
.aspx page:
<body>
<form id="form1" runat="server">
<div>
<asp:textbox id="TextBox1" runat="server" xmlns:asp="#unknown"></asp:textbox>
<asp:button id="Button1" runat="server" text="Button" onclick="Button1_Click" xmlns:asp="#unknown" />
</div>
</body>