0
Answer

Pass data between 2 formviews

gavriel ankri

gavriel ankri

12y
1.3k
1
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 ?