protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string value = Request.QueryString["id"]; int id = 0; if (int.TryParse(value, out id)) { // value is valid } else { Response.Write("Please dont modify the URL :) "); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)