Select Case Request.Params("country")
          Case "1"
           response.write("来自中国的鹏友")
          Case "2"
            response.write("来自英国的朋友")
          Case "3"
            response.write("来自俄罗嘶的朋友")
       End Select

解决方案 »

  1.   

    Select Case Request.QueryString("contry")
              Case "1"
               response.write("来自中国的鹏友")
              Case "2"
                response.write("来自英国的朋友")
              Case "3"
                response.write("来自俄罗嘶的朋友")
    End Select
      

  2.   

    ? country = 1
    去掉其中的空格为
    ?country=1
      

  3.   

    ex3_3main.htm代码:
    如:qiushuiwuhen(秋水无恨)去掉空格
    <A href="ex3_3result.aspx? country = 3">饿罗师</A>
    改为:<A href="ex3_3result.aspx?country=3">饿罗师</A> 
    ex3_3result.aspx的代码:
    最前加入 <%@ Page Language="VB" %>
    改为:<%@ Page Language="VB" %>
    <HTML>
    <HEAD>
    <title>欢迎朋友! </title>
    </HEAD>
    <body>
    <center>
    <h2>欢迎你</h2>
    <p><FONT face="宋体"></FONT>
    <%
          Select Case Request.QueryString("country")
              Case 1
               response.write("来自中国的鹏友")
              Case 2
                response.write("来自英国的朋友")
              Case 3
                response.write("来自俄罗嘶的朋友")
           End Select          
          %>
    </p>
    </center>
    </body>
    </HTML>
      

  4.   

    两个页面已调试通过:<HTML>
    <HEAD>
    <title>你的国籍 </title>
    </HEAD>
    <body>
    <center>
    <h2>请浙你的国籍</h2>
    <P>
    <A href="ex3_3result.aspx?country=1">中国</A>
    </P>
    <P>
    <A href="ex3_3result.aspx?country=2">英国</A>
    </P>
    <P>
    <A href="ex3_3result.aspx?country=3">饿罗师</A>
    </P>
    </center>
    </body>
    </HTML>
    <HTML>
    <HEAD>
    <title>欢迎朋友! </title>
    </HEAD>
    <body>
    <center>
    <h2>欢迎你</h2>
    <p>
    <%
         switch (Request.QueryString["country"].ToString())
         {
              case "1":
               Response.Write("来自中国的鹏友");
               break;
             case "2":
                Response.Write("来自英国的朋友");
                break;
              case "3":
                Response.Write("来自俄罗嘶的朋友");
                break;
          }  
          %>
    </p>
    </center>
    </body>
    </HTML>