Retrieve Value using Repeater Control.

Jayakumars
Posted by Jayakumars under ASP.NET AJAX category on | Points: 40 | Views : 689
hi
I have post the Code Retrieve Value using Repeater Control.


string DrpText="";
int DrpVal=0;
foreach (RepeaterItem rpt in ree1.Items)
{
DropDownList drp2 = (DropDownList)rpt.FindControl("Drp1");
DrpText = drp2.SelectedItem.Text;
DrpVal =Convert.ToInt32(drp2.SelectedValue) ;
}
Response.Write(" Name : " + DrpText + " EmpId :" + DrpVal);

Comments or Responses

Login to post response