Last post Jul 02, 2019 08:18 AM by samwu
Jul 01, 2019 04:50 PM|jsshivalik|LINK
I am passing below code thru Sql . How i can retreive No value in c#
td = +'http://192.168.54.100/Test.aspx?No=SNo'
Jul 01, 2019 04:59 PM|PatriceSc|LINK
You mean from the test.aspx page found on this server? Seems you are looking for Request.QueryString["No"] ?
Jul 01, 2019 05:17 PM|jsshivalik|LINK
It is integer so double quotes are to be given ["No"] or [No]
Jul 02, 2019 08:18 AM|samwu|LINK
You can convert QueryString to integer if your "No" value is integer .
int value = Convert.ToInt32(Request.QueryString["No"]);
Note: not all properties will be populated, for instance if your request has no query string, then the QueryString will be null. So you should check to see if what you expect to be in the QueryString.