locked
RadioButtonList in repeater header template RRS feed

  • Question

  • User853066379 posted

    Hi,

    I'm trying to create a custom repeater control that has a radiobuttonlist in it's header. So far I've been able to create the repeater and the radiobuttonlist but I'm unable to retrieve the selectedvalue of the radiobuttonlist on postback. I'm pretty new to creating custom controls so any help that anyone can give me would me appreciated.

    Thanks in advance

    Matt

    Tuesday, October 13, 2009 4:20 PM

Answers

  • User-68639941 posted

     hi, after binding the repeater control you can use that code

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, October 14, 2009 6:41 AM

All replies

  • User-68639941 posted
    for (int index = 0; index < rpt.Items.Count; index++)
    		{
    			if (rpt.Items[index].ItemType == ListItemType.Header)
    			{
    				rpt.Items[index].FindControl("radiobuttonid");
    			}
    		}


     

    Wednesday, October 14, 2009 2:16 AM
  • User853066379 posted

    Hi, this is the bit I don't get, where am I meant to do this? LoadPostData?

    Matt

    Wednesday, October 14, 2009 5:37 AM
  • User-68639941 posted

     hi, after binding the repeater control you can use that code

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, October 14, 2009 6:41 AM