You can pass ID from the client to the server using the property of the PDF viewer control. To achieve this, interchange the ID and the action string in the routeTemplate property of Register(HttpConfiguration config) in WebApiConfig.cs. Refer to the following code snippet.
Then, pass the ID from the view page to the web API controller. Refer to the following code snippet.
Note: String value can also be passed to the Web API controller.
In the Web API controller, add an overload in the web action methods as follows.
Note: If you are passing the value as a string, the datatype of ID must be a string.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|