用c#和ASP.NET做网站的问题。 如题,其中第一条就是添加一个asp.net网页,上部是3个button按钮,中下部是1个HTML显示区。要求是点击上面的button之后,指向的内容要在中下部的HTML显示区内显示。小弟刚刚接触C#和ASP.net,这么高深的问题实在想不通怎么做。请高手帮帮忙。谢了。貌似小弟没有分,惭愧~ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 设置document.all.显示区ID.interHtml值为要显示网页的interhtml值 嗯,我问的不够详细。原题是这样的:使用 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"的内容;望各位大虾帮忙指导下,谢谢谢谢。 用ajax,get一个网页数据欢迎访问http://www.ccworker.com 给你一个超连接例子<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> 按钮实现<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> C#有没办法阻止控件的运行 如何从CSV的第2行开始读 打卡机消息注册 两个DATATABLE 如何横向合并. C#关于ProgressBar(进度条)的问题 使用Treeview的问题 假如我把字符串(AAA)以Image的数据类型存入道SQL数据库中,再从数据库中读出该字符串(AAA),把该字符串(AAA)添加到ComboBox控件的It 这里有多少人用C#做网络开发的? 百度编辑器UEditor获取值的问题 文本框输入的问题。 简单加法问题,两个操作数怎么相加? 为什么我的datagridview没有auto format 属性啊
原题是这样的:
使用 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"的内容;望各位大虾帮忙指导下,谢谢谢谢。
欢迎访问http://www.ccworker.com
<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>
<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>