Dear Team,
I have a web api -
How do I make an Angular Project in Visual Studio 2017, and write the code to display the contents of the Web API?
Please guide on this.
Dear Team,
I have a web api -
Know the answer? Post it. Somebody with the same question will find it here.
Salman BegRank #284 · 8.8K reputationPosted Nov 20, 2020, 5:07 PM EST
Rijwan AnsariRank #82 · 24.2K reputationPosted Jan 28, 2021, 6:27 AM EST
Rijwan AnsariRank #82 · 24.2K reputationPosted Feb 2, 2021, 10:22 AM EST
Rijwan AnsariRank #82 · 24.2K reputationPosted Feb 2, 2021, 10:27 AM EST
Sachin SinghRank #66 · 26.2K reputationPosted Feb 28, 2021, 10:37 AM EST
Riddhi ValechaRank #794 · 2.9K reputationPosted Dec 10, 2020, 11:14 PM EST
Hello sir,
This link is for making API.
Sachin SinghRank #66 · 26.2K reputationPosted Dec 10, 2020, 11:22 PM EST
Kiran MohantyRank #821 · 2.8K reputationPosted Dec 11, 2020, 12:21 AM EST
Riddhi ValechaRank #794 · 2.9K reputationPosted Jan 8, 2021, 3:37 AM EST
I have Web APIs - whose output I get in XML.
How to Convert XML output to datatable and display data in Angular ?
Nikunj SatasiyaRank #302 · 8.3K reputationPosted Jan 9, 2021, 1:19 AM EST
Jignesh KumarRank #91 · 22.9K reputationPosted Jan 9, 2021, 2:10 AM EST
Riddhi ValechaRank #794 · 2.9K reputationPosted Jan 27, 2021, 3:52 AM EST
Hello Team,
I am not getting results in asp.net c# Simple code aslo.
{
string resulat = "";
string strUrl = "";
try
{
strUrl = "http://";
strUrl = string.Format(strUrl);
{
String userName = "123";
String passWord = "123";
string credentials = Convert.ToBase64String(Encoding.ASCII.GetBytes(userName + ":" + passWord));
WebRequest requestobjPost = WebRequest.Create(strUrl);
requestobjPost.Method = "GET";
requestobjPost.ContentType = "application/xml";
requestobjPost.Credentials = new NetworkCredential("123", "123");
requestobjPost.Headers[HttpRequestHeader.Authorization] = "BasicAuth"+credentials;
var HttpResponce = requestobjPost.GetResponse();
using (var StreamReader = new StreamReader(HttpResponce.GetResponseStream()))
{
resulat = StreamReader.ReadToEnd();
}
else if (strUrl == "")
{
resulat = "Bad Request";
}
catch (Exception err) { err.Message.ToString(); return null; }
return resulat;
}
import { HttpClient } from '@angular/common/http';
import xml2js from 'xml2js';
import { HttpHeaders } from '@angular/common/http';
selector: 'app-pendingassets.component',
templateUrl: './pendingassets.component.html',
styleUrls: ['./pendingassets.component.css']
})
public pendingasset: pendassets[];
constructor(http: HttpClient, @Inject('BASE_URL') baseUrl: string) {
http.get
this.pendingasset = result;
}, error => console.error(error));
}
}
interface pendassets {
ComputerComputerType: string;
ModelBrandName: string;
ModelName: string;
ComputerTcpIpHostName: string;
AssetSerialNo: string;
UserUserName: string;
RIL_Inventoried_UserUserName: string;
AssetField1: string;
}
Riddhi ValechaRank #794 · 2.9K reputationPosted Jan 28, 2021, 5:49 AM EST
Hello Team,
Do anyone know -
Riddhi ValechaRank #794 · 2.9K reputationPosted Feb 2, 2021, 8:28 AM EST
Riddhi ValechaRank #794 · 2.9K reputationPosted Feb 2, 2021, 10:06 AM EST
Riddhi ValechaRank #794 · 2.9K reputationPosted Feb 8, 2021, 1:19 PM EST
Pending Assets List
Riddhi ValechaRank #794 · 2.9K reputationPosted Feb 10, 2021, 5:14 AM EST
Riddhi ValechaRank #794 · 2.9K reputationPosted Feb 10, 2021, 2:36 PM EST
Riddhi ValechaRank #794 · 2.9K reputationPosted Feb 11, 2021, 3:36 AM EST
Riddhi ValechaRank #794 · 2.9K reputationPosted Feb 28, 2021, 10:05 AM EST
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts