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 servr 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 using reading this in my javascript using qjax and assign it as the inner HTML of a div.
How to read this radioButton list in Codebehind ?