Quote:
country.GetCountriesPdf(Val); //throwing an error here, that cannot pass this string to Entities.Masters.Country
You are trying to pass a string when you have defined a method that takes
Entities.Masters.Country Type
as a parameter.
Don't think it's related to hidden field here. It's more of how to pass the string here. Given you know your entity definition, you need to convert this string into the expected entity and then call the GetCountriesPdf method.