Hi
C#
ID is of int type
hdFld.Value = Request.QueryString["val"];
Result.ID = int.Parse(hdFld.Value);Thanks
Hi
ID is of int type
hdFld.Value = Request.QueryString["val"];
Result.ID = int.Parse(hdFld.Value);Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Uttam KumarRank #1,076 · 1.8K reputationPosted Mar 26, 2022, 1:02 PM EDT
Try using the below code:
hdFld.Value = Request.QuesryString["val"];
int num;
bool numParseSuccess = int.TryParse(hdFld.Value, out num);
Result.ID = num;
Nitin SontakkeRank #264 · 9.6K reputationPosted Mar 25, 2022, 7:31 AM EDT
Muhammad Imran AnsariRank #326 · 7.6K reputationPosted Mar 26, 2022, 2:24 PM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted Mar 25, 2022, 6:38 AM EDT
Jagjit SainiRank #6,453 · 266 reputationPosted Mar 25, 2022, 7:22 AM EDT