title: redirect to new page when i click on Cancel button in C# (webpart)
body: <pre><code>// Cancel button
              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>