emma oj

emma oj

  • 1.5k
  • 195
  • 24.1k

convert hiddenfield datatype from string to int in c#

Jun 10 2021 10:53 PM

convert hiddenfield datatype from string to int

string id = hiddenfield.Value;

I have tried the following,same error  - Input string was not in a correct format.

Int32.Parse(hiddenfield.value).

Convert.ToInt32(hiddenfield.value)

Please help


Answers (5)