求解,帮我把ASP代码翻译成ASP.NET关键在前面<%%>里面,后面只是调用播放器控件
<script language=javascript>
function go_resize(gs)
{
var Left_size = (screen.width) ? (screen.width-555)/2 : 0;
if (gs== "- ")
{
window.resizeTo(555,580);
window.moveTo(Left_size,0);
document.all.g2.disabled=true;
document.all.g1.disabled=false;
}
else
{
Left_size = (screen.width) ? (screen.width-740)/2 : 0;
window.resizeTo(740,700);
window.moveTo(Left_size,0);
document.all.g1.disabled=true;
document.all.g2.disabled=false;
}
}
</script>
<%
Set objgetjzvg=Server.CreateObject( "sqlmoviereal.getjzvg ")
connectvg=objgetjzvg.connectvg(serverdz, sqlreal, urlid, real, allplayer, filename, netbarname)
Set objgetjzvg=nothing
connectvglist=split(connectvg, ", ")
%>
<script language= "JScript ">
document.onkeydown = function()
{if(event.keyCode != 27)
{event.keyCode = 0;
event.returnValue = false;
}
}
function PlayerError()
{if(window.opener == undefined)history.back(-1);
else self.close();
}
</script>
<table align= "center " cellspacing= "0 " cellpadding= "0 " width= "100% " border= "0 "> <tr> <td align= "center " valign= "middle ">
<object id= "JzPlayer " width= "1024 " height= "768 " classid= "CLSID:AA899B43-24BD-4B6B-BBD0-45557D8D11E0 " VIEWASTEXT>
<param name= "_Version " value= "65536 ">
<param name= "_ExtentX " value= "10583 ">
<param name= "_ExtentY " value= "10583 ">
<param name= "_StockProps " value= "0 "> </object>
<input name= "g1 " type= "hidden " value= "g1 ">
<input name= "g2 " type= "hidden " value= "g2 ">
</td> </tr> </table>
<script language= "JScript ">
x = CheckPlayer();
function PlayerInit(szServerHost)
{
JzPlayer.ServerMode = "2 ";
JzPlayer.UserName= " <%=netbarname%> ";
JzPlayer.UserID= " <%=connectvglist(0)%> ";
JzPlayer.PlayMode= "1 ";
JzPlayer.PlayModeValue = " <%=connectvglist(1)%> ";
JzPlayer.ChannelID= " <%=connectvglist(1)%> ";
JzPlayer.AuthenHost = " <%=connectvglist(2)%> :80 ";
JzPlayer.ServerHost = "1.1.1.1 ";
JzPlayer.Session= " ";
JzPlayer.ProtocolType = "1 ";
JzPlayer.EmbedMode= "1 ";