asp.net - Is there any way to check if DropDownList is bound to my data source? -
i have asp.net dropdownlist control, , need check if control bound data source.
how can check if asp.net dropdownlist control bound data source?
check controls datasource , datasourceid property. let know. if it's bound declarative data source have it's datasourceid property set else datasource property of control set.
for example, try below code sample
datatable dt = new datatable("test"); this.gridview1.datasource = dt; response.write(this.gridview1.datasource.tostring()); will result in test
Comments
Post a Comment