5
Answers

convert hiddenfield datatype from string to int in c#

emma oj

emma oj

3y
1.3k
1

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)