<iframe src='<% response.write(st_str_pop_link1); %>' name=sc_frame width="739" height="600" marginwidth="0" marginheight="0" scrolling="auto" frameborder=0> 运行这个代码时提示:编译器错误消息: CS0103: 当前上下文中不存在名称“response”请问这个怎么解决?
请详细一些,谢谢~

解决方案 »

  1.   

    response.write(st_str_pop_link1);  你这个是向页面打印st_str_pop_link1是不是后台变量,如果是,这样调用 <%=st_str_pop_link1  %>再或者
    <iframe runat="iframe1"></iframe>
     
    后台赋值。。  iframe1.src="*****";
      

  2.   

    <%=st_str_pop_link1 %>
    这么写后错误题示:
    编译器错误消息: CS0103: 当前上下文中不存在名称“st_str_pop_link1”
      

  3.   

    大小写问题。
    Reponse.Write("ddddd");
      

  4.   

    Response.Write(或
    =st_str_pop_link1 =st_str_pop_link1 时要声明这个变量.在后台.
      

  5.   

     src='<% st_str_pop_link1 %>'
    Response.Write
    一般JS控制跳转
      

  6.   

    src='<% =st_str_pop_link1 %>'
    publi string st_str_pop_link1 {get;set;}
      

  7.   

    src='<% =st_str_pop_link1 %>'
    在后台先定义。