Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Data selection by DDL and Paging in the FormView

Thread Tools

Data selection by DDL and Paging in the FormView

Jürgen Schulz
Posts: n/a
Hi NG,

I have on a aspx side a FormView control for indicating, working on and adding individual data records,
which is bound to a ObjectDataSource1. The ObjectDataSource1 is based on a strongly typed DataSet. Paging
is adjusted in the FormView. So far everything functions.
Afterwards I positioned a drop down list outside of the FormView, so that I can jump to certain data records.
The ObjectDataSource1 to the FormView is bound had to be changed, in order to take over the selection of the DDL.
For the DDL I generated a ObjectDataSource2.

GetHardwareByNode_Name(String Node_Name), returns RechnerdatenDataTable
SELECT Node_Name, Nutzer, Standort, Telefon, Prozessor_Typ, Prozessor_Frequenz, Motherboard_Typ, Memory,
Memory_Typ, PCIe_x1, PCIe_x16, PCI_X, PCI, SCSI, SATA, SATA_Typ, RAID_Typ, IDE, LAN1,
LAN1_Vlan, LAN1_Dose, LAN1_TCP, LAN1_MAC, LAN2, LAN2_Vlan, LAN2_Dose, LAN2_TCP, LAN2_MAC
FROM Rechnerdaten
WHERE (Node_Name = @Node_Name)
ORDER BY Node_Name

Name: Node_Name
Value: DropDownList1.SelectedValue
Source of parameter: Control
ControlID: DropDownlist1
GetDataByNode_Name(), returns RechnerdatenDataTable
SELECT Node_Name FROM Rechnerdaten ORDER BY Node_Name

The result is everything functions with exception of Paging. The reason lies naturally in the change of
ObjectDataSource1. Which I can do around additionally the Paging to make possible.
An hint or an idea would be very helpful.

Regards Jürgen
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Selection and Paging Alhambra Eidos Kiquenet ASP .Net 1 11-21-2007 12:03 PM
Master-Details with GridView and FormView and Paging ThePurpleCat ASP .Net 0 10-18-2006 03:26 PM
web controls paging, sorting and selection from other controls Jason ASP .Net 0 10-04-2006 02:03 PM
FormView/Repeater/ Eval(FormView data) David Thielen ASP .Net Web Controls 2 06-16-2006 07:56 PM
Re: Persisting DDL.SelectedValue or DDL.SelectedItem.Value without Viewstate Marina ASP .Net 0 08-12-2003 07:08 PM