Hai, I have created a footer template in my gridview, This footer template contain many dynamically created controls where the dropdownlist is one. I have created the dropdown and assigned a function to it as follows: DropDownList selPage = new DropDownList(); selPage.ID = "selPage"; selPage.CssClass = "GVFooterSel"; for (int cnt = 0; cnt < GVDoctor.PageCount; cnt++) { int curr = cnt + 1; ListItem item = new ListItem(curr.ToString()); if (cnt == GVDoctor.PageIndex) { item.Selected = true; } selPage.Items.Add(item); } selPage.AutoPostBack = true; selPage.SelectedIndexChanged += new EventHandler(selPage_SelectedIndexChanged); selPage.Attributes.Add("onchange", "selPage_SelectedIndexChanged(this,event)"); The functions gets fired but i can't able to find the control and access its selected index. can any help me?
:-) Radiv Jeshya :-)