Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Aug 27, 2008 08:14 AM by richardneverett
Aug 26, 2008 04:01 PM|LINK
I have an ASP.NET AJAX page on my site that dynamically creates a moderate number (up to 56) of radio buttons presented in a table, each of which allows the user to select a specific item.
Data associated with each radio button is encoded in the button's ID. Processing a radio button click is done in the page's Page_Load event handler, by checking the ScriptManager's AsyncPostBackSourceElementID.
This approach is not great, but it seems relatively lightweight and works!
Step 1 - in this scenario replace the radio buttons with buttons so that we will get a postback to the server when they are clicked
So, the question is: How do I determine the ID of the control that caused the postback?
Comments on the approach used are also welcome.
Aug 26, 2008 05:21 PM|LINK
Have a look here:
Hope this helps,
Aug 26, 2008 05:24 PM|LINK
Aug 27, 2008 08:14 AM|LINK
Thanks for the two responses there - however the key thing here is that this has to work with