title: How to populate textboxes with json data by selecting dropdownlist
body: <p>`    public partial class DropDownApi : System.Web.UI.Page
      {
           string _URL = "/api/Insurance";</p>
  
  <pre><code>    protected void Page_Load(object sender, EventArgs e)
      {
              WebRequest req = WebRequest.Create(_URL);
              req.Method = "GET";
              // req.Headers.Add("key");
              req.ContentType = "application/json; charset=utf-8";
              WebResponse resp = req.GetResponse();
              Stream stream = resp.GetResponseStream();
              StreamReader re = new StreamReader(stream);
              String json = re.ReadToEnd();
              json = "{\"InsuranceDetails\":" + json + "}";
              wrapper w = (wrapper)new JavaScriptSerializer().Deserialize(json, typeof(wrapper));
  
  
              ddlinsurance.DataSource = w.InsuranceDetails;
              ddlinsurance.DataBind();
          }
          public class wrapper
          {
              public List&lt;insurance_master&gt; InsuranceDetails { get; set; }
          }`&lt;asp:DropDownList ID="ddlinsurance" runat="server" AutoPostBack="false" DataTextField="policy_number"&gt;&lt;/asp:DropDownList&gt;`
  </code></pre>
  
  <p>`I am having a dropdownlist filled with json data(policy_number) and now when i select the policy_number from dropdown it has to display remaining details in the textboxes by matching the selected policy_number.I have used MVC WebApi service for my project.
  Can anyone please help me!!!</p>
  
  <p>Thanks in Advance.</p>