redirect to new page when i click on Cancel button in C# (webpart)
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/6430379/redirect-to-new-page-when-i-click-on-cancel-button-in-c-webpart">redirect to new page when i click on Cancel button in C# (webpart)</a>  </p>
</blockquote>



<pre><code>        tc = new TableCell();
        btnCancel = new Button();
        btnCancel.Text = "Cancel";
        btnCancel.Click += new EventHandler (btnCanel_Click ) ;
        tc.Controls.Add(btnCancel);
        tr.Controls.Add(tc);

        t.Controls.Add(tr);


        // Empty table cell
        tr = new TableRow();
        tc = new TableCell();
        tr.Controls.Add(tc);

        this.Controls.Add(t);
    }

    protected void btnCanel_Click(object sender, EventArgs e)
    {

    }
</code></pre>

<p>What i am tring to do is . when i click on Cancel button it redirect me to "Example.aspx".
i am create a webpart using C#</p>
