Thursday, February 4, 2010

HOW TO GET QUERYSTRING VALUE

if(Request.QueryString["UserID"] != null)
{
userid = Convert.ToInt16(Request.QueryString["UserID"].ToString());
}


OR
if (!(Request.QueryString["Thread_ID"] == null))
{
threadid = Convert.ToInt32(Request.QueryString["Thread_ID"]);
}

No comments:

Post a Comment