skip to Main Content

Send file to Web Api – Asp.net

Hello I Have a request in web form code behind and i like call web api send Object with a property of type IFormCollection, the object properties sending but file not WebRequest wrqst = WebRequest.Create(URLService + method); var postData =…

VIEW QUESTION

Enable CORS in Asp.Net Application

I am getting "Access to XMLHttpRequest at 'http://localhost:60261/api/student/?Name=qwwertyqwe&Age=21' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource." Although the API is called and it is working as expected, but there is…

VIEW QUESTION

asp.net core – form values return null

Passing department and title models for use data in selectbox and passing employee model for save data from user. tring to pass values from partial view but in controller values return null. partial view: @model (List<Department> Departments, List<Title> Titles, Employee…

VIEW QUESTION
Back To Top
Search