User2092378267 posted
I have a CountryIdHiddenField and I want to pass the CountryIdHiddenField.Value to the below Function.
public string GetCountriesPdf(Entities.Masters.Country country)
{
string FilePath = ConfigurationManager.AppSettings["GetCountriesPdf"];
switch(country.Id)
{
case 1:
return FilePath+= "Country file";
}
}
I have tried to pass like:
protected void btn_Click (object sender, EventArgs e)
{
string Val = CountryIdHiddenField.Value;
Country_Bal country = new Country_Bal();
country.GetCountriesPdf(Val); //throwing an error here, that cannot pass this string to Entities.Masters.Country
}