Using repeater buttons as triggers for an external update panel
Posted on 2008-06-19
Hello experts! I have a question that might be very simple for all of you but has given me plenty of trouble.
I have a repeater with a given datasource, and inside that repeater I generate lots of products. Each product has a "add to shopping list" button, which is meant to Update an update panel located outside of my repeater (the repeater is _not_ inside of this update panel).
I tried giving my buttons dynamic ids but " ID='<%# Eval("ID_Projecto").ToString() %>' " gives me an error :( so I cant dynamically add them as triggers for the other update panel, since I can't find out which ID the repeater is generating for them.
So... if my repeater was called "rep", and my button was called "btn" and my other update panel was called "shopping_list", what should I be doing?
Thank you for your feedback in advance, this is quite urgent for me!