如题,其中第一条就是添加一个asp.net网页,上部是3个button按钮,中下部是1个HTML显示区。要求是点击上面的button之后,指向的内容要在中下部的HTML显示区内显示。
小弟刚刚接触C#和ASP.net,这么高深的问题实在想不通怎么做。
请高手帮帮忙。
谢了。貌似小弟没有分,惭愧~

解决方案 »

  1.   

    设置document.all.显示区ID.interHtml值为要显示网页的interhtml值
      

  2.   

    嗯,我问的不够详细。
    原题是这样的:
    使用 Visual Studio 2005(或Visual Studio 2003)、ASP.NET 2.0和 C# 建立一个ASP.NET文件系统网站并向其添加一个
     ASP.NET 网页(.aspx 文件),要求为:
     1.网页上部有3个Button: Button1, Botton2, Button3;
     2.网页中下部为1个HTML显示区(式样见附件);
     3.点击Button1,HTML显示区显示"新浪新闻http://news.sina.com.cn"的内容;
     4.点击Button2,HTML显示区显示"网易新闻http://news.163.com"的内容;
     6.点击Button3,HTML显示区显示"搜狐新闻http://news.sohu.com"的内容;望各位大虾帮忙指导下,谢谢谢谢。
      

  3.   

    用ajax,get一个网页数据
    欢迎访问http://www.ccworker.com
      

  4.   

    给你一个超连接例子
    <body>
        <form id="form1" runat="server">
          <div>
          <table width="100%" height="100%">
          <tr>
          <td width="12%" valign="top">
           <a href="http://news.sina.com.cn" target="hehe">新浪新闻</a>
           <a href="http://news.163.com" target="hehe">网易新闻</a>
           <a href="http://news.sohu.com" target="hehe">搜狐新闻</a>
          </td>
          <td width="88%" valign="top">
            <iframe id="hehe" name="hehe" frameborder=0 width="100%" style="height:575px; border-left-style:solid; border-left-color:#7788DD; border-left-width:thin">
            </iframe>
          </td>
          </tr>
          </table>
        </div>
        </form>
    </body>
      

  5.   

    按钮实现
    <body>
        <form id="form1" runat="server">
          <div>
          <table width="100%" height="100%">
          <tr>
          <td width="12%" valign="top">
           <input type="button" value="新浪新闻" onclick="SinaNews();" />
           <input type="button" value="网易新闻" onclick="NeasyNews()"; />
           <input type="button" value="搜狐新闻" onclick="SohuNews();" />
          </td>
          <td width="88%" valign="top">
            <iframe id="hehe" name="hehe" frameborder=0 width="100%" style="height:575px; border-left-style:solid; border-left-color:#7788DD; border-left-width:thin">
            </iframe>
          </td>
          </tr>
          </table>
        </div>
        </form>
    </body>
    <script>
    function SinaNews()
    {
      hehe.location.href="http://news.sina.com.cn";;
    }
    function NeasyNews()
    {
      hehe.location.href="http://news.163.com";
    }
    function SohuNews()
    {
      hehe.location.href="http://news.sohu.com";
    }
    </script>