Posted on: 6/12/2015 9:46:06 AM | Views : 623

hi all
in aspx page i have added a select control in div as
<div>
 <select  id="select1" runat="server"></select>
and wrote a function in aspx.cs page as
protected void showdata() {
ds = objServiceClientobjService.GetAllDistrict();......................................this is from wcf if (ds == null) { Response.Write(String.Format(@"<script>alert('Data not found.');</script>")); } else { select1.DataSource = ds; select1.DataValueField = "column"; select1.DataBind(); select1.Items.Insert(0, new ListItem("--Select --", "0")); } }
data has to be displaced in select control when div is clicked
so plz tell me how to call showdata() method in div onclick event

Go to the complete details ...