web user control(dropdownlist)
-
hi, I hvae created a web user control dropdownlist in a .ascx file.Then I dragged it into a .aspx file.It is showing the items of dropdownlist.But I can't get the selected item value in .aspx page.How can I get it? regards, Bill
-
hi, I hvae created a web user control dropdownlist in a .ascx file.Then I dragged it into a .aspx file.It is showing the items of dropdownlist.But I can't get the selected item value in .aspx page.How can I get it? regards, Bill
Just write a Public Property in .ascx file. For example :
public string GetSelectedValue { get{return DropDownlist1.SelectedValue;} }
ARINDAM
-
Hi, you must have public property to get the value of your U.C. dropdownlist. example: public str as string = ddl.selecteditem.value
Hope this one can help. Thanks Hi, Please select Good Question if my answer are fit to your Question.
Hi, Follow the given link: http://www.daniweb.com/forums/thread141469.html
Either you love IT or leave IT...