传值前正常,传值后取值时超过4个字的后1~2个出现乱码附JS:
function newin(url,winame,w,h)
{
var xposition,yposition,theproperty;
xposition=0; yposition=0;
if ((parseInt(navigator.appVersion) >= 4 ))
{
xposition = (screen.width - w) / 2;
yposition = (screen.height - h) / 2-100;
}
theproperty= "width=" + w + ","
+ "height=" + h + ","
+ "location=0,"
+ "menubar=0,"
+ "resizable=0,"
+ "scrollbars=0,"
+ "status=0,"
+ "titlebar=0,"
+ "toolbar=0,"
+ "hotkeys=0,"
+ "screenx=" + xposition + "," //仅适用于Netscape
+ "screeny=" + yposition + "," //仅适用于Netscape
+ "left=" + xposition + "," //IE
+ "top=" + yposition; //IE
window.open( url,winame,theproperty );
}
function newin(url,winame,w,h)
{
var xposition,yposition,theproperty;
xposition=0; yposition=0;
if ((parseInt(navigator.appVersion) >= 4 ))
{
xposition = (screen.width - w) / 2;
yposition = (screen.height - h) / 2-100;
}
theproperty= "width=" + w + ","
+ "height=" + h + ","
+ "location=0,"
+ "menubar=0,"
+ "resizable=0,"
+ "scrollbars=0,"
+ "status=0,"
+ "titlebar=0,"
+ "toolbar=0,"
+ "hotkeys=0,"
+ "screenx=" + xposition + "," //仅适用于Netscape
+ "screeny=" + yposition + "," //仅适用于Netscape
+ "left=" + xposition + "," //IE
+ "top=" + yposition; //IE
window.open( url,winame,theproperty );
}
onchange="if (this.value != '')newin('xwin.aspx?subcompany='+ this.value,null,420,358);"取值:Request.QueryString["subcompany"]
4个字不会出现乱码,4个字的后1~2个出现乱码