求教:在C#后台页面写JAVASCRIPT代码。
<script language=javascript>
function OpenWin(url,name,w,h)
{
window.open(url, name,
"left="+(window.screen.width-w)/2+",top="+(window.screen.height-h)/2+",width="+w+",height="+h+",scrollbars=0,menubar=0,toolbar=0,location=0,status=0");
}
</script>
Response.Write("<script language='javascript'>OpenWin('LoginSuccessful.aspx','LoginSuccessful','250','150')</script>");
我现在想在C#页面里面实现这个函数,让页面显现出来,javascript的部分直接写在C#页面,该如何实现?