Last post Nov 13, 2008 11:07 AM by Luke101
Nov 11, 2008 07:04 PM|Luke101|LINK
Here is my problem. I have a repeater in a usercontrol and a linkButton in the repeater. When the user clicks on the link button i need the Main page to grab the variable from the user control. I successfully managed to grap the variable from the user control
but only thing is, is that the user must click the link button twice to view the results. The results are displyed in the main page. Is there a way grap the variable immediately after the user blicks the link button?
Here is the code I used to grab the variable from the usercontrol:
Nov 12, 2008 12:25 AM|gilfink|LINK
In order to do such a thing expose a the variable you need as a property on the user control.
Then, bubble the event of the click from your user control to the page and let the page implement the logic of the event.
You can see an example of how to such a thing here:
Nov 13, 2008 11:07 AM|Luke101|LINK
It took me a while to get it working but the code finally worked.