How I get postal data by using web Api

Aypn CNN 446 Reputation points
2021-10-25T17:16:45.097+00:00

Dear Friends,

I am very beginner in the web API's segment, in my VB Aspx, I'm trying to get data by using URL: https://api.postalpincode.in/pincode/{PINCODE} (for Ex. https://api.postalpincode.in/pincode/110001)

ref input field:

<asp:TextBox ID="txt_pincode" runat="server" CssClass="form-control" TextMode="SingleLine"  placeholder="6 Number" MaxLength="6" Width="100px" ></asp:TextBox>

When the user enters 6 digit Pincode then values will bind into the dropdowns as follows...

my DropDown controls

  • "Name" field should append into ddl_city
    <asp:DropDownList ID="ddl_city" runat="server" CssClass="form-control" Width="200px">
    <asp:ListItem Text="--Select--" Value="0"></asp:ListItem></asp:DropDownList>
  • "District" filed values should append into ddl_district (distinct values only) <asp:DropDownList ID="ddl_district" runat="server" CssClass="form-control" Width="200px">
    <asp:ListItem Text="--Select--" Value="0"></asp:ListItem></asp:DropDownList>
  • "State" filed values should append into ddl_state (distinct values only)

<asp:DropDownList ID="ddl_state" runat="server" CssClass="form-control" Width="200px">
<asp:ListItem Text="--Select--" Value="0"></asp:ListItem></asp:DropDownList>

Thanks in advance.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,288 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
302 questions
0 comments No comments
{count} votes

Accepted answer
  1. Lan Huang-MSFT 25,876 Reputation points Microsoft Vendor
    2021-10-26T10:03:40.543+00:00

    Hi @Aypn CNN ,

    I am very beginner in the web API's segment, in my VB Aspx

    what's your type of your project? web api?or vb?
    Best regards,
    Lan Huang


0 additional answers

Sort by: Most helpful