R
Robert Strickland
I have used VB.Net and now learning C#. I have the following line from
vb.net app:
id = CType(Request.QueryString("id"), System.Int32)
where id is type integer. I am trying the same under C# with:
id = (System.Int32)ctx.Request.QueryString["reportid"].ToString();
which gets compile error "(31): Cannot convert type 'string' to 'int'"
Any ideas?
vb.net app:
id = CType(Request.QueryString("id"), System.Int32)
where id is type integer. I am trying the same under C# with:
id = (System.Int32)ctx.Request.QueryString["reportid"].ToString();
which gets compile error "(31): Cannot convert type 'string' to 'int'"
Any ideas?