if (!String.IsNullOrEmpty(Request.QueryString["Id"]))
{
string Id = Request.QueryString["Id"].ToString();
if (Id != "")
{
int numeber = 0;
if (int.TryParse(Id, out number))
{
//code
}
else
{
Server.Transfer("Error.aspx");
}
}
else
{
Server.Transfer("Error.aspx");
}
}
Good Post
ReplyDeleteThanks a Lot