emma oj

emma oj

  • 1.9k
  • 148
  • 10.6k

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 (7)