I have an asp.net page.I am generating a RadioButton list from server ( an asp.net page ) and load it to a DIV using javascript and ajax.Now i want to read the RadioButton list in my codebhind file.But the VS Intelisense is not showing the control name. Can anyone tell me how to read it?
My code for generating radio button list in server side
System.IO.StringWriter swriter=new System.IO.StringWriter();
HtmlTextWriter textWriter = new HtmlTextWriter(swriter);
string strPriceOutput="";
RadioButtonList iRadioBtnListPrices = new RadioButtonList();
iRadioBtnListPrices.RepeatDirection = RepeatDirection.Vertical;
iRadioBtnListPrices.CssClass = "priceList";
string strRadios = "";
if ((this.Vendor != null))
{
foreach (VendorQuoteType vendorQuoteType in Vendor.VendorQuoteTypeCollection)
{
iRadioBtnListPrices.Items.Add(new ListItem(" $ " + totalPrice.ToString()" ,vendorID.ToString()));
}
}
iRadioBtnListPrices.RenderControl(textWriter);
strPriceOutput = swriter.ToString();
and I am reading this in my javascript using ajax and assign it as the inner HTML of a div.
How to read this RadioButton list in Codebehind ?