title: Event after data binding using SqlDataSource
body: <p>I have one textbox to search and one FormView in my page:</p>
  
  <pre><code>&lt;div runat="server" id="adminArea"&gt;
      &lt;table&gt;
          &lt;tr&gt;
              &lt;td&gt;
                  &lt;asp:Label ID="Label4" runat="server" Text="Enter a Member ID :"&gt;&lt;/asp:Label&gt;&lt;/td&gt;
              &lt;td&gt;&lt;br /&gt;
                  &lt;asp:TextBox ID="TextBox5" runat="server" TextMode="Number"&gt;&lt;/asp:TextBox&gt;&lt;br /&gt;
                  &lt;asp:RequiredFieldValidator ID="RequiredFieldValidator1" ValidationGroup="vgSearch" ForeColor="Red" ControlToValidate="TextBox5" runat="server" ErrorMessage="Enter a valid Member Id"&gt;&lt;/asp:RequiredFieldValidator&gt;
              &lt;/td&gt;
              &lt;td&gt;
                  &lt;asp:Button ID="Button1" OnClick="Button1_Click" CssClass="btn btn-primary" runat="server" Text="Search" ValidationGroup="vgSearch" /&gt;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  &lt;/div&gt;
  
  &lt;asp:FormView ID="FormView1" DefaultMode="Edit" Width="100%" runat="server" DataSourceID="profileInformationDataSource" DataKeyNames="id" &gt;
      &lt;EditItemTemplate&gt;
             &lt;table align="center" cellpadding="5" cellspacing="5" class="auto-style1" style="margin-top:20px;"&gt;
                 &lt;tr&gt;
                      &lt;td colspan="3"&gt;&lt;b&gt;&lt;%# Eval("name") %&gt;&lt;/b&gt;'s Profile&lt;/td&gt;
                 &lt;/tr&gt;
                 /**
                 ** Many fields are here to bind
                 **/
      &lt;/EditItemTemplate&gt;
  &lt;/asp:FormView&gt;
  </code></pre>
  
  <p>To bind above form fields I am using a SqlDataSource:</p>
  
  <pre><code> &lt;asp:SqlDataSource ID="profileInformationDataSource" runat="server" ConnectionString='&lt;%$ ConnectionStrings:DefaultConnection %&gt;' SelectCommand="SELECT Top 1 mem.name,mem.img_src,mem.id, CONVERT(VARCHAR(10), mem.dob, 111) as dob,mem.sex,mem.member_cert_id,mem.address,mem.Country , mem.state,mem.city,mem.zip,mem.phone,mem.mobile,mem.email_id,mem.bank_acc_no,mem.bank_pan_no,mem.account_holder_name,mem.bank_name,mem.bank_code,mem.bank_address,mem.bank_zip,mem.bank_location,mem.bank_country,mem.bank_branch FROM Members as mem where mem.id = @memberId order by mem.id desc"
   UpdateCommand="UPDATE Members SET name = @name, dob = @dob , member_cert_id = @member_cert_id , address = @address , Country = @Country, state = @state , zip = @zip, mobile= @mobile , phone= @phone, email_id = @email_id, bank_pan_no = @bank_pan_no, bank_acc_no = @bank_acc_no, account_holder_name = @account_holder_name, bank_name= @bank_name, bank_code = @bank_code, bank_address = @bank_address, bank_zip =@bank_zip, bank_location = @bank_location Where id= @id " &gt;
          &lt;SelectParameters&gt;
                   &lt;asp:ControlParameter ControlID="TextBox5" DefaultValue="0" Name="memberId" PropertyName="Text" /&gt;
          &lt;/SelectParameters&gt;
  
      &lt;UpdateParameters&gt;
          &lt;asp:Parameter Name="name" Type="String" /&gt;
          &lt;asp:Parameter Name="dob" Type="String" /&gt;
          &lt;asp:Parameter Name="member_cert_id" Type="String" /&gt;
          &lt;asp:Parameter Name="address" Type="String" /&gt;
          &lt;asp:Parameter Name="Country" Type="String" /&gt;
          &lt;asp:Parameter Name="state" Type="String" /&gt;
          &lt;asp:Parameter Name="zip" Type="String" /&gt;
          &lt;asp:Parameter Name="mobile" Type="String" /&gt;
          &lt;asp:Parameter Name="phone" Type="String" /&gt;
          &lt;asp:Parameter Name="email_id" Type="String" /&gt;
          &lt;asp:Parameter Name="bank_pan_no" Type="String" /&gt;
          &lt;asp:Parameter Name="bank_acc_no" Type="String" /&gt;
          &lt;asp:Parameter Name="account_holder_name" Type="String" /&gt;
          &lt;asp:Parameter Name="bank_name" Type="String" /&gt;
          &lt;asp:Parameter Name="bank_code" Type="String" /&gt;
          &lt;asp:Parameter Name="bank_address" Type="String" /&gt;
          &lt;asp:Parameter Name="bank_zip" Type="String" /&gt;
          &lt;asp:Parameter Name="bank_location" Type="String" /&gt;
          &lt;asp:Parameter Name="id" /&gt;
      &lt;/UpdateParameters&gt;
  
  &lt;/asp:SqlDataSource&gt;
  </code></pre>
  
  <p>Whenever I click search button fields are filling by the SqlDataSource. Now my problem is that in the FormView I have UpdatePanels for Country, state and city dropdown. So I want to load them from my back-end code. </p>
  
  <p>So I want an event that is fired up after the filling of data.</p>