注册 登录
编程论坛 ASP.NET技术论坛

JS转化成C#问题

there1987 发布于 2007-07-20 16:30, 483 次点击

<script type="text/javascript">

function GoTo(url)
{
window.frames["body"].location=url;

}
</script>

<a href="JavaScript:GoTo('footer.aspx')">a</a>

把这段给IFRAME换网页的JS程序编程C#的一个BUTTON_CLICK事件怎么处理?
我是想写在CS里,因为还有别的事件。哪位高手指点

3 回复
#2
there19872007-07-20 16:42
没人?
#3
shen5219412007-07-23 09:00

用页面转向方法!

#4
冰彩虹2007-07-23 13:20
Response.Write("window.frames['body'].location='"+url+"';");
1