Thanks for the replies!

I have got a bit further

Like cerebrus says I added a datasource to the aspx and set the
datasource of the Dropdowns created in the repeater to that
datasource.  I then set the selectedvalue like this:

SelectedValue='<%# Bind("StaffID") %>'   Although I have yet to find
out what happens if there is no match.  Will it error?

I set the name of the dropdown in the repeater like this:

Name=<%# "cboSalesPerson" & DataBinder.Eval(Container.DataItem,
"SalesID")%>

Which then gives a name for example cboSalesPerson12345

When I load the page it does everthing I need it to do

My next step is then they save the page I loop through the dropdown
controls the name will give me the SalesID (just remove the
cboSalesPerson and it give the id) and the selectedvalue will give me
the staffid they have set it to.

Am I making this difficult for myself?

Thanks

Fred

Reply via email to