string IsNullOrEmpty

  string queryStringValue = Request.QueryString["key"];
  if (string.IsNullOrEmpty(queryStringValue)) {
      // querystring not supplied. Do necessary action
  }
  else
      // Querystring supplied. continue execution

posted @ 2010-02-19 00:11  greencolor  阅读(194)  评论(0编辑  收藏  举报