question

AypnCNN-4494 avatar image
0 Votes"
AypnCNN-4494 asked LanHuang-MSFT commented

How I get postal data by using web Api

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.











dotnet-aspnet-generaldotnet-aspnet-webapi
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LanHuang-MSFT avatar image
0 Votes"
LanHuang-MSFT answered LanHuang-MSFT commented

Hi @AypnCNN-4494,

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

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

Yes, FYI., my project is in asp.net only.

0 Votes 0 ·

Hi, I got an Answer to my question, but I'm unable to reply, when I respond it says Access Denied, how I solve this Access Denied issues ?

0 Votes 0 ·

Hi @AypnCNN-4494,
Maybe you can try refreshing the page,
If there is code, put the code in txt, or post a screenshot of the code.
Best regards,
Lan Huang

0 Votes 0 ·