I’m having a bit of trouble figuring this one out.
I have a dropdownlist (populated from a datasource that concatenates first and last names, and the value is an “employee ID”, oh and it’s a sql server database).
I also have a formview, that displays all the “employee” information (same database, different sqldatasource. What I’m trying to do is when a user selects an employee from the dropdownlist, it finds the page with the matching employee ID and displays that page.
The formview also needs to keep the paging, to allow a user to select next or previous if needed. (It’d also be nice if the ddl would update on next and previous to show the current viewed employee).
Currently, I have the ddl inside the formview, with a
SelectedValue='<%# Eval("Employee_ID") %> (which I'm hoping will take care of the ddl showing part, haven't tested that bit as I just woke up,heh).
I have autopostback in the ddl set to true, and it is firing the OnSelectedIndexChanged event, I’m just not sure what to do next. (more specifically, I guess I don’t know how in C# to find the page with the matching “employee id”.
Thanks much for any help!
I think this is big example , how to bind and update the form view using drop down select item….