asp.net javascript mvc – how can I get javascript from inner page to clear element from outer page?

I want javascript click event that’s called from an “inner” mvc form to clear the element of the “outer”/”parent” form but clicking clear produces no results (see wireframe). Javascript works on the outer form but not when called from scripts file reference in the inner form although I know that the script is wired up…

Asp.Net Core 3 Identity – Custom Claims not present in JWT from browser

Asp.Net Core 3.0 I am using the ASP.NET Core web application with Angular and Authentication (Individual User Accounts) template (from Visual Studio 2019). My intention is to add some Custom Claims in the generated JWT and use them in browser. In order to do that, I have extended the UserClaimsPrincipalFactory public class MyCustomClaimsInjector : UserClaimsPrincipalFactory<ApplicationUser>…

How to download PDF file on browser in Asp.net CORE MVC

I am using below code which used to download SSRS report in pdf format: string URL = “http://ssrs-test.com/ReportS/?/UAT_FOLDER”; URL = URL + “&SRNo=122&rs:Command=Render&rs:Format=pdf”; System.Net.HttpWebRequest Req = (System.Net.HttpWebRequest) System.Net.WebRequest.Create(URL); Req.Method = “GET”; string path = @ “E:\New folder\Test.pdf”; System.Net.WebResponse objResponse = Req.GetResponse(); System.IO.FileStream fs = new System.IO.FileStream(path, System.IO.FileMode.Create); System.IO.Stream stream = objResponse.GetResponseStream(); byte[] buf = new…

Asp.Net httpGet get httpstatus 415 for calling controller method with complex type parameter

I have an angular client that is sending an HttpRequest to server to get client informations: getClient(roleId): Observable<ClientDto> { let params = new HttpParams(); params = params.append(‘Id’, clientId); return this._httpClient.get<ClientDto>(‘myurl’, {params}); } and on the controller I have [HttpGet] public async Task<ActionResult<ClientDto>> GetClient(EntityDto<int> data) { return Ok(await clientsService.GetClient(data.Id)); } public class EntityDto : EntityDto<int>, IEntityDto…

asp.net same solution name but under different directories are sync each others

I have 1 asp.net solution (name: ‘123’) under ‘abc’ folder. and I copied solution ‘123’ into ‘xyz’ folder. After modifying a controller of solution ‘123’ under ‘abc’ folder, the same controller of solution ‘123’ under ‘xyz’ was updated what I changed in ‘abc’. e.g: I changed a variable name of the controller of solution ‘123’…

How to download PDF file on browser in Asp.net CORE MVC

Have below code: string URL = “http://ssrs-test.com/ReportS/?/UAT_FOLDER”; URL = URL + “&SRNo=122&rs:Command=Render&rs:Format=pdf”; System.Net.HttpWebRequest Req = (System.Net.HttpWebRequest) System.Net.WebRequest.Create(URL); Req.Method = “GET”; string path = @ “E:\New folder\Test.pdf”; System.Net.WebResponse objResponse = Req.GetResponse(); System.IO.FileStream fs = new System.IO.FileStream(path, System.IO.FileMode.Create); System.IO.Stream stream = objResponse.GetResponseStream(); byte[] buf = new byte[1024]; int len = stream.Read(buf, 0, 1024); while (len > 0)…