gavriel ankri

gavriel ankri

  • NA
  • 39
  • 48.5k

Pass data between 2 formviews

Feb 29 2012 2:30 AM
hello

Im trying to pass data between formview2 and formview3

I used this code in formview3:

  <asp:SqlDataSource ID="SqlDataSource2" runat="server"
  ConnectionString="<%$ ConnectionStrings:DBprojectConnectionString %>"
  SelectCommand="SELECT [Password], [ComputerTag], [ComputerType], [Class], [FullName], [School], [PupilID], [UserName] FROM [Pupils] WHERE ([PupilID] = @PupilID)">
  <SelectParameters>
  <asp:ControlParameter ControlID="FormView2" Name="PupilID"
  PropertyName="SelectedValue" Type="Int32" />
  </SelectParameters>

PupilID should be the same in the 2 formviews, but nothing happen
I can see the data in the formview2, but formview3 is blank

what is wrong ?