title: Help with DetailsView
body: <p>Im new to webforms.</p>
  
  <p>Right now I have a DetailsView of a single client... what I want is that before the view is displayed, if the client doesnt have an email defined, redirect to a different page.. how can I get the data from the objectdatasource and redirect?? </p>
  
  <p>help please.</p>
  
  <p>Here's my ObjectDataSource</p>
  
  <pre><code>&lt;asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
          InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" 
          SelectMethod="GetDataByCodigo" 
          TypeName="PanamaBanks.DataSetTableAdapters.ClientesTableAdapter"&gt;
          &lt;InsertParameters&gt;
              &lt;asp:Parameter Name="Codigo" Type="String" /&gt;
              &lt;asp:Parameter Name="CodigoBanco" Type="String" /&gt;
              &lt;asp:Parameter Name="Nombre" Type="String" /&gt;
              &lt;asp:Parameter Name="Apellido" Type="String" /&gt;
              &lt;asp:Parameter Name="Negocio" Type="String" /&gt;
              &lt;asp:Parameter Name="Email" Type="String" /&gt;
              &lt;asp:Parameter Name="Telefono" Type="String" /&gt;
          &lt;/InsertParameters&gt;
          &lt;SelectParameters&gt;
              &lt;asp:FormParameter DefaultValue="0" FormField="codigo" Name="Codigo" 
                  Type="String" /&gt;
          &lt;/SelectParameters&gt;
      &lt;/asp:ObjectDataSource&gt;
  </code></pre>